vytas Posted December 30, 2006 Share Posted December 30, 2006 I want to make the text a visitor puts in my prompt box be *** signs but i dont know how.Here's the site where its stored www.freewebs.com/vytas35And here's the code can u edit it to what i want thank you. <script type="text/javascript">{var p= prompt ("Pls enter the password","*****")var w= "hello"if (p!=w){document.location.href="http://www.freewebs.com/vytas35"}</script> Link to comment Share on other sites More sharing options...
PrateekSaxena Posted December 30, 2006 Share Posted December 30, 2006 Use the password object for the asterisks.http://www.devguru.com/technologies/ecmasc...f/password.htmlFor hiding the characters, I do not think it's possible to that using javascript only Link to comment Share on other sites More sharing options...
vytas Posted December 30, 2006 Author Share Posted December 30, 2006 Cant u acces the input to something else . Because i think i have seen it somewhere Link to comment Share on other sites More sharing options...
PrateekSaxena Posted December 30, 2006 Share Posted December 30, 2006 I donth think so....Probably they did it by the way that I have specified it as well!!! Link to comment Share on other sites More sharing options...
vytas Posted December 30, 2006 Author Share Posted December 30, 2006 Can u use something like this <script type="text/javascript">{var p= prompt ("Pls enter the password","*****")var w= "hello"if (p==txt) { p==* }if (p!=w){document.location.href="http://www.freewebs.com/vytas35"}</script> Now while your here could u help me with something else ???Now while your here could u help me with something else ??? 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