最近一个项目使用到的。在网上查了好久,有的可行,有的就不行。总结一下吧。
方案一:
父页面:
window.showModalDialog('User.jsf?USERCODE='001'&Rnd='+Math.random(),window,'dialogHeight =800px;dialogWidth=800px;dialogLeft=200px;dialogTop=100px;center=yes;scroll=yes;status=no')
子页面:
在要刷新父页面的时候,在Javascript函数中调用如下代码:
dialogArguments.location.href=dialogArguments.location.href ;

方案二:
父页面:
onclick="
var result;result = window.showModalDialog('User.jsf?USERCODE='001'&Rnd='+Math.random(),window,'dialogHeight =800px;dialogWidth=800px;dialogLeft=200px;dialogTop=100px;center=yes;scroll=yes;status=no');
if(result ==1) this.form.submit();
return false;"
子页面:
在要刷新父页面的时候,在Javascript函数中调用如下代码:
window.returnValue=1;

相关文章:

  • 2021-09-10
  • 2022-12-23
  • 2021-07-17
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2021-12-05
猜你喜欢
  • 2021-12-14
  • 2021-08-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-28
相关资源
相似解决方案