Jump to content

Javascript prompt boxes


vytas

Recommended Posts

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

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

Cant u acces the input to something else . Because i think i have seen it somewhere

Link to comment
Share on other sites

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...