Make your own free website on Tripod.com
 

 

 

 

 



Site Map:

Home
About Me
Links
Graphics
Photoshop Tutorials
Java-Script Tutorials
HTML Tutorials
Contact Me

 

 

Prompting for Information

That thing that popped up is a prompt.  It was created using Java-Script.  They are very easy to use.

Create a prompt
Here is the code

<script language="JavaScript">

prompt("What is your name?","Your Name")

</script>

Result: That thing that popped up. Click Here if you missed it.

First you put the prompt command, then a parentheses.  It sounds just like the alert command.  Then comes the quotation marks, the first set is what you want the gray area to say, the second is what you want the text to say.  You always have a comma separate them.  If you wanted the text area to say nothing you would just put nothing in between the quotation marks.

Back | Next

Originally made on 10.26.02
Formally InLiner's Graphics and Tutorials