var myText=prompt("What do you want to say?","Hello World!","Input your text here");
alert("You said: "+myText);
In the above example, myText will be filled with whatever is typed into the input box. For the prompt() method, the format is as follows....
prompt([prompt message],[default text],[title])
prompt message will apear inside the prompt box and can be used for basic instructions, clarification, etc.
default text will appear in the input box but can be changed.
title will appear in the title area of the prompt box.
Any of those fields can be left blank, but you must at least use the commas if you aren't going to include some of the fields. For example, if the only field you want to use is the title, you have to use prompt(,,"My Title").
Hope this is what you want.
Exactly what I was asking, thank you