Home > Web Front-end > JS Tutorial > 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
Release: 2016-05-16 16:33:53
Original
1141 people have browsed it

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template