这次还是弹出窗口问题我用window.open弹出了一个窗口,现在的要求是在这个窗口中 点击button,更新数据库,之
这次还是弹出窗口问题
我用window.open弹出了一个窗口,
现在的要求是在这个窗口中 点击 button, 更新数据库,之后这个窗口关闭,接着父窗口自动刷新
,怎么做
[解决办法]
page.html
- HTML code
<html> <script> var ChildPage; function openw(){ ChildPage = window.open("page1.html", "_blank", "height=600, width=800"); } function refrashPage(){ ChildPage.close(); window.location = window.location; } </script> <body> <input type="button" onclick="openw()" value="弹出"> </body></html> 