<script type="text/javascript" >
var childWindow1;
//보고서팝업
function openRpt(frm){
childWindow1 = window.open("","srchRpt","scrollbars=no,toolbar=no,resizable=no,width=420,height=510,left=0,top=0");
//alert(childWindow1);
frm.target = "srchRpt";
frm.action = "/fs/dis/com/DISRptSrch.jsp"
frm.method="post";
frm.submit();
childWindow1.focus();
}
/*-- 팝업 닫기--*/
function windowClose() {
try {
if(childWindow1) childWindow1.close();
}
catch(e) {}
try {
if(childWindow2) childWindow2.close();
}
catch(e) {}
}
window.attachEvent("onunload",windowClose);
'Web(웹) Study > Java Script' 카테고리의 다른 글
런타임 오류 & 구문 오류 (0) | 2008.09.10 |
---|---|
특수문자 체크 (0) | 2008.09.10 |
javascript 에서 배열을 사용할때 유의점! (1) | 2008.09.10 |
document와 form에 id,name가져오기 (0) | 2008.09.10 |
로그인 할 때 쿠키로 아이디 저장하기 (0) | 2008.07.18 |