"프레임킬러"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
(사용자 2명의 중간 판 2개는 보이지 않습니다)
7번째 줄: 7번째 줄:


==방법==
==방법==
<source lang='javascript'>
<syntaxhighlight lang='javascript'>
if( self == top ) document.documentElement.style.display = 'block';  
if( self == top ) document.documentElement.style.display = 'block';  
else top.location = self.location;
else top.location = self.location;
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==
16번째 줄: 16번째 줄:
*[[HTML iframe]]
*[[HTML iframe]]


==주석==
==참고==
<references/>
 
==참고 자료==
*http://en.wikipedia.org/wiki/Framekiller
*http://en.wikipedia.org/wiki/Framekiller


[[분류: JavaScript]]
[[분류: JavaScript]]
[[분류: Frame]]
[[분류: Frame]]

2020년 11월 2일 (월) 02:52 기준 최신판

1 개요[ | ]

framekiller, framebuster, framebreaker
프레임 없애기, 프레임킬러, 프레임버스터, 프레임브레이커, 프레임 벗어나기
최상위 프레임인지 확인
  • frame[1]에서 해당 페이지를 불러들일 때 최상위 프레임으로 열도록 강제하는 자바스크립트
  • 자신의 프레임이 top인지 확인, top이 아니면 top에 url 전달

2 방법[ | ]

if( self == top ) document.documentElement.style.display = 'block'; 
else top.location = self.location;

3 같이 보기[ | ]

4 참고[ | ]

  1. 또는 iframe
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}