window.onload = function () {
    var returnValue = window.showModalDialog("son.html ", window);
    //for chrome
    if (returnValue == undefined) {
        returnValue = window.returnValue;
    }
}

 --

if (window.opener != undefined) {
       //for chrome
       window.opener.returnValue = "opener returnValue";
}
else {
       window.returnValue = "window returnValue";
}

window.close(); 

 

 

防止弹出的子窗口,再弹出窗口可在:

<head>

<base   target= "_self "   />           

</head>       

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2021-09-19
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
  • 2021-06-21
  • 2022-12-23
相关资源
相似解决方案