Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Script problem

  1. #1
    Regular Coder
    Join Date
    Jul 2006
    Posts
    138
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Script problem

    can anyone tell me what is it that I am doing wrong in this code?
    This should take me to the page if the password is ioncorrect but instead the browser says page not found
    ....
    else{
    alert("Invalid username & password")
    load('wrongpage.html')
    }
    }
    function load(url)
    {
    location.href=url;
    }

  • #2
    Senior Coder
    Join Date
    Jul 2005
    Location
    New York, NY
    Posts
    1,084
    Thanks
    4
    Thanked 19 Times in 19 Posts
    nothing wrong with the script, it's the url that's the problem.

    try to navigate to that page, is it there? Is it spelt correctly? Is it in a directory other than the current one?


  •  

    Posting Permissions

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