0
How can I take the input to the prompt as a feedback for another segment of code?
2 Réponses
+ 4
You mean this?:
func(prompt("input"));
function func(str){//code... }
+ 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.