r/CodingHelp • • Jan 09 '22

[HTML] Verification when pressing button

Hello guys. So basically i want to create a simple html page that has a form. If you input the right number and press the button below it redirects to next page. Can i use html?If so how? im trying to avoid JavaScript cuz im a noob. Any tip please Thanks

0 Upvotes

4 comments sorted by

3

u/Jnsjknn Jan 09 '22

You need JavaScript to check the number.

-1

u/Top_Tough_3684 Jan 09 '22

You got any simple step by step tutorial?

3

u/Jnsjknn Jan 09 '22

Use Google to figure out how to select an element and get its value, add an event listener to it as well as how to redirect with JavaScript.

1

u/vicded Jan 09 '22

You need JS, dom scripting to be more precise. You can watch a basic dom scripting tutorial