0

I Don't know how to get text input to appear on screen with javascript

13th Dec 2016, 9:10 PM
Brian Hoeft
Brian Hoeft - avatar
6 Answers
+ 5
I mean something like that var x = prompt("Enter text");
13th Dec 2016, 10:57 PM
ThreeG
ThreeG - avatar
+ 4
You can use prompt function
13th Dec 2016, 10:41 PM
ThreeG
ThreeG - avatar
+ 2
- console.log("your text"); - document.write("your text"); - document.getElementById("your text").innerHTML; - it works with tags associated with an id.
13th Dec 2016, 10:50 PM
Franky BrainBox
Franky BrainBox - avatar
+ 1
what do you mean by prompt function?
13th Dec 2016, 10:55 PM
Brian Hoeft
Brian Hoeft - avatar
0
ah alright man thanks
14th Dec 2016, 12:13 AM
Brian Hoeft
Brian Hoeft - avatar
0
you can get input by using forms, alerts, etc. if you want to prompt used to give you values
18th Dec 2016, 2:30 PM
havugimana emmanuel
havugimana emmanuel - avatar