标签:javascript
window.close()
<html> <head> <meta charset="utf-8" /> <title>弹出的窗口</title> <style type="text/css"> body{ background-image:url(new.jpg); background-repeat:no-repeat; } </style> </head> <body> <input type = "button" value = "关闭" onClick="window.close();"/> </body> </html>
<html> <head> <meta charset="utf-8" /> <script type="text/jscript" language="javascript"> window.open("new.html","new","height=280,width=800,top=10,left=20,resizable=no, location=no",false); </script> <style type="text/css"> p{ font-size:24px; color:#F00; } </style> </head> <body> <p>网站首页</p> </body> </html>
JavaScript特效实例007-为弹出的窗口加入关闭按钮
标签:javascript
原文地址:http://blog.csdn.net/yejinwei1220/article/details/45668051