원본글 : http://withseller.co.kr/bbs/tb.php/Newbbs/100

『출처』위드셀러 - 무료카운터 제공/상품별 상세 카운터,갤러리/상품종료시 자동연결 (http://www.withseller.co.kr)

<script-x>
 function selfclose_1()
 {
  window.open('about:balnk','_self').close();
 }
 function selfclose_2()
 {
  var useragent = window.navigator.appVersion;
  var msie = useragent.indexOf ( "MSIE " );
  var version = useragent.substring(msie+5,msie+8);
  if (version >= "7.0")
  {
   var obj = new ActiveXObject("Wscript-x.shell");
   self.opener = this;
   self.focus();
   obj.SendKeys("%{F4}");
   obj.SendKeys("%{F4}");
  }
  else
  {
   self.close();
  }
 }
 function selfclose_3()
 {
  window.open('','_parent','').close();
 }
 function selfclose_4()
 {
  window.close();
 }
</script-x>


<a href="javascript-x:void(0)" onClick="selfclose_1()">닫기 1</a><br />
<a href="javascript-x:void(0)" onClick="selfclose_2()">닫기 2</a><br />
<a href="javascript-x:void(0)" onClick="selfclose_3()">닫기 3</a><br />
<a href="javascript-x:void(0)" onClick="selfclose_4()">닫기 4</a><br />

+ Recent posts