logo

New Response

« Return to the main article

You are replying to:

    • avatar
    • shu
    • Posted on Thu 23 Nov 2006

    function windowOpener(url, name, args) { if (typeof(popupWin) != "object"){ popupWin = window.open(url,name,args); } else { if (!popupWin.closed){ popupWin.location.href = url;

    } else { popupWin = window.open(url, name,args); } } popupWin.focus(); }

    // called from html - closes popup then reopens with new args function popWindow1() { if (typeof(popupWin) == "object") popupWin.close() windowOpener(url1, name1, args1) }

    // called from html - closes popup then reopens with new args function popWindow2() { if (typeof(popupWin) == "object") popupWin.close() windowOpener(url2, name2, args2) }

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: