+ 3
What function is used to get input from user and for displaying a message in box ?
3 Answers
+ 1
Get data using prompt() function and displayed using alert() function.
Like:
var getData = prompt();
alert(getData);
Also, can using innerHTML, document.write to display data in javascript.
0
prompt and alert
0
alert