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