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 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jul 2003
    Location
    New Zealand
    Posts
    435
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Thumbs up im sure this is easy, but i dunno how!

    can I generate the page, then have an if statement (i dunno the code) like this:

    Code:
    if (textbox1 = "text in the textbox")
    {     prompt("Enter your name, you just typed the lucky phrase!");
    }
    help appreciated
    Last edited by Scrowler; 07-20-2003 at 08:03 AM.

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    Will this put you on the right track

    Type in the word lucky phrase



    <script>
    function chkme(){
    if(document.f1.t1.value=="lucky phrase"){
    prompt("YES","You did it")
    }
    }
    </script>


    <form name="f1">
    <input type="text" name="t1">
    <input type="button" onclick="chkme()">
    </form>

  • #3
    Regular Coder
    Join Date
    Jul 2003
    Location
    New Zealand
    Posts
    435
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks man, you're a legend.

  • #4
    Regular Coder
    Join Date
    Jul 2003
    Location
    New Zealand
    Posts
    435
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Mr J, I have my quiz.asp file in an iFrame, then it loads the results in an iFrame, on it if you get 100% then you get prompted for input, then after that, if you click any links that would normally navigate in the iFrame, it creates a popup of that file :S:S help?


  •  

    Posting Permissions

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