本文實(shí)例講述了js父頁(yè)面與子頁(yè)面不同時(shí)顯示的方法,可實(shí)現(xiàn)打開(kāi)一個(gè)頁(yè)面后,父頁(yè)面DISABLE,在子頁(yè)面關(guān)閉后,父頁(yè)面ENABLE。分享給大家供大家參考。具體方法如下:
復(fù)制代碼 代碼如下: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();
}
}
更多信息請(qǐng)查看IT技術(shù)專(zhuān)欄