팝업창 url 주소 어떻게 없앨수있나요..?

팝업창 url 주소 어떻게 없앨수있나요..?

QA

팝업창 url 주소 어떻게 없앨수있나요..?

본문

popup.gif
 


팝업 소스입니다..
<html> 
<head> 
<title> </title> 
<SCRIPT language="JavaScript"> 
<!-- 
function setCookie(name,value,expiredays) //쿠키를 사용자에게 전달할 함수만들기 
//setCookie(쿠키이름,쿠키값,쿠키만료시간) 
var todayDate = new Date(); 
todayDate.setDate(todayDate.getDate() + expiredays); 
document.cookie = name + "=" + escape(value) + "; path=/; expires=" + todayDate.toGMTString() + ";" 
//페이지 이동
function goURL(url){
opener.location.href=url;
}
//

function closeWin() 
if (cookie_form.chk.checked) //체크박스에 체크되 있다면(폼 이름,체크박스 이름을 맞춰주세요.) 
setCookie("no_pop","ok",1); //쿠키이름은 no_pop,쿠키값은 ok,쿠키만료 기간은 1 일로 쿠키생성 
//혹시 no_pop 이라는 이름의 쿠키를 이미 사용하고 있다면 이름을 바꿔주세요 

self.close(); //창 닫기 
// --> 
</SCRIPT> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.style2 {font-size: 12px}
-->
</style></head> 
<!--<body onUnLoad = "closeWin();"><!-- 브라우저 모서리의 x 클릭으로 닫았을때도 처리하고 싶다면 <body onUnLoad = "closeWin();"> --> 
<table border="0" cellpadding="0" cellspacing="0"><tr><td>
<a href="javascript:goURL('http://killyou1874.cafe24.com/');"><img src="../images/nation/sewol.jpg" style="width: 442px;"></td></tr></a>


<tr><td><form name = "cookie_form">
  <input type = "checkbox" name = "chk"><span class="style2">오늘은 이창 열지 않기</span>
            <input type = "button" value = "close" onClick = "closeWin();"></form>  </td></tr>
  </table>

</body> 
</html>

이 질문에 댓글 쓰기 :

답변 1

제가 알기론 크롬에서는 나오는걸로 아는데요~
ie에서는 해당 부분이 안나올걸요..
답변을 작성하시기 전에 로그인 해주세요.
전체 440
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT