<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"; }} 폴더 안의 페이지로 이동할경우 입니다.
php를 이용하시는게 좋을 듯...