我们往往会遇到这种情况,就是用 window.showModalDialog弹出的窗口,在里面提交form表单时,或者location.href=""时,都会新弹出窗口,很恶心的。

注:showModalDialog窗口与window.open打开的窗口刷新本窗口时不同,showModalDialo窗口也不能用F5刷新,也没有右 键操作

 

建议采用以下方式: 



A. 在模式窗口页面中加入:      
<base target="_self"> //在html和body之间
<a >reload.click();//reload为A中隐藏a标签的id,当然可以换成其它名称

相关文章:

  • 2022-03-06
  • 2021-05-24
  • 2022-01-08
  • 2022-12-23
  • 2021-08-14
  • 2022-02-27
  • 2021-10-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
  • 2021-08-19
  • 2022-02-17
  • 2021-06-22
相关资源
相似解决方案