Jump to content

AshokGeetesh

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by AshokGeetesh

  1. Hi,

     

    Please could you help me on the below codings.

     

    I have set the password in below codings, but i want to know few things. ie if we provide correct password it should move to hyperlink. ex: WWW.GOOGLE.COM instead of giving me as "Correct",

     

    <head><script type="text/javascript">function isValid(){var password = document.getElementById('password').value;if (password == "G0ld"){alert('Correct!')}else{alert('Wrong Password')}}</script></head>

    <form name="PasswordField" action="">Password:<input type="password" id="password" name="password"><input type="button" value="Log in" onclick="isValid();"></form>

     

     

    Thanks,

    AshokGeetesh

×
×
  • Create New...