웹마스터 팁

출처  http://www.pagetutor.com/keeper/index.html

<HTML>
<HTML>
<HEAD>
<TITLE>My Page</TITLE>

<SCRIPT language="JavaScript"><!--
/*********************************************************
             GateKeeper v2.3 - by Joe Barta
            http://www.pagetutor.com/keeper/
     Permission is granted to freely use this script.
**********************************************************/

function GateKeeper() {
   var password = prompt("Password required:", "");
   if (password) { this.location.href = password + ".html"; }}

//--></SCRIPT>

</HEAD>
<BODY>

<A HREF="javascript:{;}" onClick="GateKeeper(); return false">Click here</A> for my secret page!  
<NOSCRIPT><FONT COLOR="#FF0000"><BR>Javascript is required to access this area. Yours seems to be disabled.</FONT></NOSCRIPT>  

</BODY>
</HTML>


var password = prompt(" 입력란위에 나타날 말을 써주세요 ", "입력칸안에 나타날 말을 써주세요");

if (password) { this.location.href = "폴더명/" + password + ".html"; }} 폴더 안의 페이지로 이동할경우 입니다.

출처에 가보시면 프레임으로 나누는 방법도 있더군요.^^;;