1. 2007.10.15 항상 최상위에 떠있는 팝업창

항상 최상위에 떠있는 팝업창

function window_top(url, width, hight) {
    if (document.all && window.print) {
        eval('window.showModelessDialog(url, "", "help:0; resizable:1; dialogWidth:' + width + 'px; dialogHeight:' + hight + 'px")') 
    } else {
        eval('window.open(url, "", "width=' + width + 'px, height=' + hight + 'px, resizable=1, scrollbars=1")');
    }
}

window_top('http://www.naver.com', 400, 200);
팝업된 창은 항상 최상위에 있게된다.
Return top