http://www.daerew.com/bbs/zboard.php?id=4_study_javascript&page=1&sn1=&divpage=1&sn=off&ss=on&sc=on&select_arrange=headnum&desc=asc&no=84
-----------------------------------------------------------------------------------------
반드시 특정 페이지 (예 ; 로그인 페이지)를 거쳐 들어오게 하는 스크립트 입니다
-----------------------------------------------------------------------------------------에서요....
아래의 소스는 어느부분에 삽입하여야 작동을 하죠??
index.html 에 넣어 봤는데.. 아무런 변화가 없어서요...
<SCRIPT LANGUAGE="JavaScript">
<!--
var requiredfrom = "http://www.daerew.com/index.php"; // 거쳐 들어와야 할 페이지
if (document.referrer.indexOf(requiredfrom) == -1) {
alert("이 페이지는 반드시 " + requiredfrom + " 페이지를 거쳐 들어와야 합니다");
window.location=requiredfrom;
}
//-->
</script>