标签:javascript
<html> <head> <meta charset="utf-8" /> <title>弹出的窗口</title> <style type="text/css"> body{ background-image:url(new.jpg); background-repeat:no-repeat; } </style> <script> function pp() { alert(window.opener); window.opener.location.reload(); window.close(); } </script> </head> <body> <input type = "button" value = "关闭" onClick="pp();"/> </body> </html>(2)主窗口index.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特效实例008-关闭弹出的窗口时,刷新父窗口
标签:javascript
原文地址:http://blog.csdn.net/yejinwei1220/article/details/45690523