- showModalDialog 关闭子页面后 父页面跳转 到其它页面
- a.html:
- <html>
- <head>
- <script>
- function doShow()
- {
- window.showModalDialog
- ("b.html",window,'scrollbars=yes;resizable=no;help=no;status=no;dialogWidth=420px;dialogHe
- ight=310px');
- }
- </script>
- </head><body>
- <form>
- <input type ="button" onclick="doShow();" value="Test"/>
- </form>
- </body>
- </html>
- b.html:
- <html>
- <head>
- <script>
- function skip(a)
- {
- alert("父窗口从a.htm跳转到c.htm");
- window.dialogArguments.location=a;
- window.close();
- }
- </script>
- </head>
- <base target="_self"/>
- <body>
- <form method="post" action="at.html">
- <input type ="button" onclick="skip('index.html');" value="Close"/>
- <input type="submit" value="submit"/>
- </form>
- </body>
- </html>
showModalDialog 关闭子页面后 父页面跳转 到其它页面
最新推荐文章于 2021-07-13 22:08:33 发布