[JavaScript] 팝업창 열기, 닫기 (popup window open and close)
function fnPopup() {
var popupOption = 'directories=no, toolbar=no, location=no, menubar=no, status=no, scrollbars=no, resizable=no, left=400, top=200, width=440, height=550';
window.open(URL, name, popupOption);
}
function fnClose() {
window.opener.location.href = URL;
window.close();
}
참고 :
http://www.w3schools.com/jsref/met_win_open.asp
댓글 없음:
댓글 쓰기