js父頁面與子頁面不同時(shí)顯示的方法

字號(hào):


    本文實(shí)例講述了js父頁面與子頁面不同時(shí)顯示的方法,可實(shí)現(xiàn)打開一個(gè)頁面后,父頁面DISABLE,在子頁面關(guān)閉后,父頁面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();
    }
    }