+ 2

How do you set a button to go to the other screen when you click it?

I am trying to practice HTML by making the first two screens that will apear when the user opens the app. This is the first page: <h1>Hello. Welcome to iTOPIC!<h1> <input type= button>Hello!></input> <input type =button>Next></input> I want the 2 buttons to go to the other screen or next action when you click on them. How do I acheive this?

4th Mar 2017, 1:14 AM
Ruth
Ruth - avatar
1 Odpowiedź
+ 4
Use <a> element instead. Use elements for purpose which they were designed for You can type something like the following, but let me recommend to avoid this manner. <input type="button" onclick="window.location.href='"/page2"' value="next">
4th Mar 2017, 1:26 AM
Patrik Sokol
Patrik Sokol - avatar