+ 2
Can javascript take keyboard input?
If so, how? I'm talking about keyboard input that isn't in a prompt like onclick or onmouseover.
2 Respostas
+ 2
A 'prompt' will create a pop-up with a text box for user input. Is this what you want?
+ 2
Yep it can.
try running this simple code..
var name = prompt("Please enter your name");
variable "name" takes in the input by the user.