View Single Post
  #1 (permalink)  
Old May 23rd, 2007, 21:35
VanHype VanHype is offline
Junior Member
Join Date: Apr 2007
Location: england
Age: 20
Posts: 21
Thanks: 1
Thanked 1 Time in 1 Post
need help with password

hi, i need help with my coding here... the code works fine... i just need it so that the characters the user types in will be displayed as '*' instead of the actual character, this is only to protect one page...

Code: Select all
  <!--
 
  var password = "password"
  var x = prompt("Enter in the password "," ")
  if (x.toLowerCase() == password) {
  alert("Password correct \n \n Click OK to proceed")
  location = "diary/diary.html"
  }
 
  else {
  location = "incorrect.html"
  }
 
  //-->
Reply With Quote