标签:javascript
点击按钮创建窗口
<pre name="code" class="html"><html> <head> <title>打开新窗口显示广告信息</title> <style type="text/css"> body{ background-image:url(new.jpg); background-repeat:no-repeat; } </style> </head> <body></body> </html>2实现创建窗口功能的index.html
<html> <head> <title>定时打开窗口显示广告信息</title> <script type="text/jscript" language="javascript"> function pp() { window.open("new.html","new","height=280,width=800,top=10,left=20,resizable=no, location=no",false); } </script> </head> <body> <form name = "from1" method = "post" action=""> <input type = "button" name = "Button" value= "创建新窗口" onClick = "pp()"/> </form> </body> </html>
标签:javascript
原文地址:http://blog.csdn.net/yejinwei1220/article/details/45583855