انسخ الكود و ضعه بصفحتك و غير كلمة السر بما يناسبك:
<html>
<head>
<title>password 1</title>
<script LANGUAGE="javascript">
var wrong="pass1.htm";
// password...
var password="ضع هنا الكلمة";
// prompts the user this...
var name = prompt("WHAT is the password???","WHAT");
// if... else statement... right, confirm this, wrong, go to wrong...
if (name == password) {(confirm("Welcome!"))}
else {location.href=wrong}
</script>
</head>
<body>
</body>
</html>تحياتي(f)