Password Protected Web Page

<script language="JavaScript">

var password;
var pass1="vasant";

password=prompt('Please enter your password to view this page!',' ');

if (password==pass1)
   {
  alert('Password Correct! Click OK to enter!');
   }
else
  {
 window.location="localhost/htac/contact.php";
 }

</script>
Previous
Next Post »