+ 1
How do I get user input
I need to know how to get user input for a web document using java script
2 Respuestas
+ 3
var user=prompt("enter your name")
alert(user)
0
var user = document.getElementById(“ ”).value;
Between signs place your input’s ID