+ 1

How to use a button to go from one page to another page in html ? pls.. give an example code

19th Jul 2020, 12:12 PM
Shikhar Dwivedi
Shikhar Dwivedi - avatar
2 Answers
+ 1
Using JavaScript: <button onclick="window.location.href='/page2'">Continue</button>
19th Jul 2020, 12:14 PM
Mantafounis Panagiotis
Mantafounis Panagiotis - avatar
+ 1
Using this <form method="get" action="/page2"> <button type="submit">Continue</button> </form>
19th Jul 2020, 12:15 PM
Mantafounis Panagiotis
Mantafounis Panagiotis - avatar