0

How can I take the input to the prompt as a feedback for another segment of code?

27th Dec 2016, 4:19 PM
Gayatri Kindo
Gayatri Kindo - avatar
2 Réponses
+ 4
You mean this?: func(prompt("input")); function func(str){//code... }
27th Dec 2016, 4:21 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 1
You need to write an event into the HTML. If I'm reading your question correctly. You need to write the relevant event like onfocus = theNameOfMyFunction() into the HTML tag area which would accept the user input. This will call the function named theNameOfMyFunction upon entry.
7th Jan 2017, 11:59 PM
Alyssa Rae Fox
Alyssa Rae Fox - avatar