您现在的位置是:首页 > 电脑技术查询 > web开发

在使用模态窗口的 showmodaldialog 时,怎么在不关闭模态窗口的同时,刷新父页面

编辑:chaxungu时间:2022-10-02 23:18:16分类:web开发

在使用模态窗口的 showmodaldialog 时,如何在不关闭模态窗口的同时,刷新父页面
在使用模态窗口的 showmodaldialog 时,如何在不关闭模态窗口的同时,刷新父页面

------解决方案--------------------
index.html

<input type=button onclick= "showModalDialog( 'a.html ',window) " value= "open ">

a.html

<input type=button onclick= "dialogArguments.document.write( 'HELLO ') " value= "refresh ">