0
I Don't know how to get text input to appear on screen with javascript
6 Answers
+ 5
I mean something like that
var x = prompt("Enter text");
+ 4
You can use prompt function
+ 2
- console.log("your text");
- document.write("your text");
- document.getElementById("your text").innerHTML; - it works with tags associated with an id.
+ 1
what do you mean by prompt function?
0
ah alright man thanks
0
you can get input by using forms, alerts, etc. if you want to prompt used to give you values