内容 |
本文实例讲述了js父页面与子页面不同时显示的方法,可实现打开一个页面后,父页面DISABLE,在子页面关闭后,父页面ENABLE。分享给大家供大家参考。具体方法如下: 复制代码 代码如下: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(); } } |