Get a Variable from the Prompt() function (Rated 3)Description:
Get a user's input from a prompt. Code starts here
var colour;
colour = prompt("Enter your favorite colour:","");
document.write("Aah, " + colour + " is a nice colour!!");
Last Edited: June 25, 2003, 9:43 pm
Submitted by Devscripts on 25-06-2003 21:43 |