사이트 내 전체검색
Iframe 이용시 Iframe 페이지만 호출금지
로빈아빠
https://cmd.kr/javascript/702 URL이 복사되었습니다.

본문

Iframe 이용시 Iframe 페이지만 호출금지

Iframe 이용시에 Iframe 페이지만 독자적으로 보는 경우 다시 리로드 해서 Parent 페이지도 보이게 한다.

<SCRIPT language=javascript>
	var undefined
		if ( parent.document.frames['ifrm'] == undefined || parent.document.frames['ifrm'] == "undefined" ){

		window.location.replace("/Parent.html");
		}else{
						
		}
</SCRIPT>

댓글목록

등록된 댓글이 없습니다.

831 (5/17P)

Search

Copyright © Cmd 명령어 3.141.42.84