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?

11th Sep 2017, 7:03 AM
zig_zag_z
zig_zag_z - avatar
6 Respuestas
+ 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
11th Sep 2017, 7:10 AM
Jack
Jack - avatar
+ 2
Thanks again
11th Sep 2017, 7:32 AM
zig_zag_z
zig_zag_z - avatar
+ 1
Thanks
11th Sep 2017, 7:10 AM
zig_zag_z
zig_zag_z - avatar
+ 1
Ok, I know how to do these things in Python but I thought I'd give html a try
11th Sep 2017, 7:11 AM
zig_zag_z
zig_zag_z - avatar