javascript | 새창으로 뜬 페이지 강제로 닫기
페이지 정보
작성자 100K5 작성일12-04-01 09:41 조회70,346회 댓글0건관련링크
본문
<script type="text/javascript">
<!--
// 팝업을 띄울 주소
var url = "http://www.uhakgo.com/naver_cafe/form_online.php";
// 팝업에 보낼 인자 값
var mail_type = "<?=$mail_type?>";
// 브라우저가 실행 되면 바로 팝업을 띄운다.
window.open(url+"?mail_type="+mail_type, "fmail", "left=50,top=50,width=660,height=630,scrollbars=0");
// 브라우저 강제로 닫힘 소스
방식 1
top.window.open('about:blank','_self').close();
top.window.opener=self;
top.self.close();
방식2
top.window.opener = 'top';
top.window.open('','_parent', '');
top.window.close();
//-->
</script>
top.window.opener = 'top';
top.window.open('','_parent', '');
top.window.close();
//-->
</script>
댓글목록
등록된 댓글이 없습니다.