Home  >  Article  >  Web Front-end  >  How to display js parent page and child page at the same time_javascript skills

How to display js parent page and child page at the same time_javascript skills

WBOY
WBOYOriginal
2016-05-16 16:33:531099browse

The example in this article describes how to display the js parent page and the child page at different times. After opening a page, the parent page is DISABLE, and after the child page is closed, the parent page is ENABLE. Share it with everyone for your reference. The specific method is as follows:

Copy code The code is 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 design.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn