JavaScript Password
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2

Thread: Password

Threaded View

  1. #1
    Join Date
    Oct 2012

    Cool Password

    Hi I have tried to add another password to the script but it gives me an error what am I doing wrong

    <div style="margin-top: 2px">
    <script language="javascript">
    /*This Script allows people to enter by using a form that asks for a
    function pasuser(form) {
    if (form.pass.value=="1234") {
    } else if {
    (form.pass.value=="5678") {
    else {
    alert("Invalid PASSWORD TRY AGAIN")
    <p >&nbsp;</p>
    <input name="pass" type="password">
    <input value="Login" onclick="pasuser(this.form)" type="button">
    <input type="Reset"></form>
    Last edited by PeejAvery; October 27th, 2012 at 11:28 AM. Reason: Added code tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a survey!

HTML5 Development Center