有时候需要在一个页面A上点击打开另一个页面B ,在页面B关闭后刷新A页面,可以用如下的代码实现:

var wnd_print = null;

function commonProceed() {
wnd_print = window.open('../Print.aspx?form_instance_id='+form_instance_id+'&template_id=' + template_id);
window.setInterval(check_wnd_print,3000);
}
function check_wnd_print() {
if (wnd_print && wnd_print.closed)
{
location.reload();
wnd_print = null;
}
}

相关文章:

  • 2021-12-29
  • 2021-09-12
  • 2021-09-12
  • 2021-12-15
  • 2021-12-15
  • 2021-12-28
  • 2021-12-28
  • 2021-10-03
猜你喜欢
  • 2021-08-06
  • 2021-08-09
  • 2021-09-12
  • 2021-09-12
  • 2021-11-19
  • 2021-09-10
  • 2021-09-27
  • 2021-11-13
相关资源
相似解决方案