0
User input in HTML?
I want the user to input a number that I then can use later in my code. How do I do that? Also how can I make a box appear to ask the user to input something?
6 Answers
+ 3
I don't know about HTML but that is possible in JavaScript. Use the prompt function:
Var name = prompt("What is your name") ;
This will create a variable with a value of whatever the user just in
+ 2
Thanks again
+ 1
Thanks
+ 1
Ok, I know how to do these things in Python but I thought I'd give html a try