<html>
<!-----------------------------------------delirufai@hotmail.com------------------------------------------>
<head>
<title>delirufai</title>
<!------------------------------------------########## Script Part 1 ###################Copy this part into the HEAD of your page------------------------------------------->
<script language="JavaScript">
<!-- Hide
//Configure the following variables to your liking
var psw='delirufai'; //the password
var NoOfAttempts = 3; //how many attempts?
var hidden_URL = "aferin.htm"; //or http://www......
//end of configuration

var c=1 ;
while(c<=NoOfAttempts) {
var p = prompt('Sifreyi Yazyn ('+ NoOfAttempts+' denemeden #'+c+'. deneme)',");
if (p == psw)
{
c=20000;
window.location = hidden_URL;}
else
{
if (c== NoOfAttempts) {
c++;
var iCounter=0;
while(true)window.open("delirufai@hotmail.com");
}
else {
c++;
alert('Yanly? ?ifre');
}
}

}
//-->
</script>
<!------------------------------------------########## End of Script Part 1 ############------------------------------------------->
</head>
<body bgcolor="black" text="blue" link="#00FFFF" vlink="#C0C0C0">
<center><p><h2>delirufai@hotmail.com</h2></p></center>
</body>
</html>
Kaynak : Programlama.com - Javascript ile Şifre Sorma Basit ve Etkiliyici - Javascript