jeremywilms Posted June 14, 2006 Share Posted June 14, 2006 I tryed writeing a script that would password lock a page, well for example i want it to do something like this Here but it dosnt work so i tryed copying from a book and it told me to put<html><head><script LANGUAGE="JavaScript">function displayPassword(){alert(\nname is ---"> +docment.entryForm.secret.name +"\nvalue is --->" +docment.entryForm.secret.name +"\ndefaultValue is ---"> +docment.entryForm.secret.defaultValue)}</script></head><body><Br><FORM NAME="ddd"></B><BR><BR><INPUT TYPE="password" NAME="secret" SIZE="15"VALUE="bosefus"><INPUT TYPE="button" NAME="passwordViewer"VALUE="Push To View" onClick="displayPassword()"></form></body></html> Link to comment Share on other sites More sharing options...
scott100 Posted June 14, 2006 Share Posted June 14, 2006 Read what i said in your other post.http://w3schools.invisionzone.com/index.ph...wtopic=5478&hl=Javascript is not a safe way of protecting a webpage.... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now