Porygonix
08-04-2002, 05:15 PM
I'm making something that asks for your name (prompt) and then says 'Hey so-and-so' via alert.
var x = prompt("What's your name/nickname?")
alert("Hey document.write(x)!")
It doesn't carry out the command. It says it how it is. How do I get it to say the variable in the alert?
var x = prompt("What's your name/nickname?")
alert("Hey document.write(x)!")
It doesn't carry out the command. It says it how it is. How do I get it to say the variable in the alert?