This article example describes the method of displaying js parent page and child page at the same time. It can realize that after opening a page, the parent page DISABLE, and after the child page is closed, the parent page ENABLE. Share it for your reference. The specific methods are as follows:
Copy the code as follows: function onNewClick()
{
var url = "VesselScheduleNEW.aspx";
if (null!=newWin && newWin.closed) newWin=null;
if (null==newWin) newWin=window.showModalDialog(url,"newwin","dialogWidth=1000px;dialogHeight=400px;help:no;center:yes;resizable:no;status:no;scroll:no");
if(newWin == "OK")
{
window.location.reload();
}
}
I hope this article will be helpful to everyone's JavaScript programming.