Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-20-2003, 06:05 AM   PM User | #1
Scrowler
Regular Coder

 
Join Date: Jul 2003
Location: New Zealand
Posts: 435
Thanks: 1
Thanked 0 Times in 0 Posts
Scrowler is an unknown quantity at this point
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 07:03 AM..
Scrowler is offline   Reply With Quote
Old 07-20-2003, 10:57 AM   PM User | #2
Mr J
Senior Coder

 
Join Date: Aug 2002
Location: UK
Posts: 2,789
Thanks: 2
Thanked 14 Times in 14 Posts
Mr J is on a distinguished road
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>
Mr J is offline   Reply With Quote
Old 07-21-2003, 04:42 AM   PM User | #3
Scrowler
Regular Coder

 
Join Date: Jul 2003
Location: New Zealand
Posts: 435
Thanks: 1
Thanked 0 Times in 0 Posts
Scrowler is an unknown quantity at this point
Thanks man, you're a legend.
Scrowler is offline   Reply With Quote
Old 07-21-2003, 04:58 AM   PM User | #4
Scrowler
Regular Coder

 
Join Date: Jul 2003
Location: New Zealand
Posts: 435
Thanks: 1
Thanked 0 Times in 0 Posts
Scrowler is an unknown quantity at this point
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?
Scrowler is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:08 AM.


Advertisement
Log in to turn off these ads.