[Beginner]Javascript Tutorial Part 3

02/29/2012 18:19 [I]Inquisitor#1
Well hello again today. Today we are going to work with prompts

*What is prompt?
Prompt is just like alert box, but you can reply to it. For example

What's your name? // The prompt(alert clearly) ask what's your name

And down here is textbox, there you can write your name. This wont save your information it's just to show you how to work with it

Ok...
I don't have to remind you :P
PHP Code:
<script type="text/javascript">
</script> 
Simple prompt starts just like variable but starts with prompt


PHP Code:
prompt="Hello, do you like epvpers?"
[Only registered and activated users can see links. Click Here To Register...]

It will looks exactly like that...
This won't do anything if you want to redirect u to other page .etc you must make some codes...

Here is another example this contains variables and prompts

PHP Code:
var name=prompt("What's your name?");
alert("Welcome to epvpers " name " . "); // Will answer back Welcome to epvpers and your name.. 
Ok so that's all i hope you know now how to work with prompt and variable

I hope you enjoyed, please thanks for this tutorial if you like it and wait for the part 4 and the rest parts. Thanks, cheers.