How to create a working button by which user can open a new page? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to create a working button by which user can open a new page?

How to crate a button by which i can show a new page.

22nd Aug 2019, 8:21 AM
Shubham Shekhar
2 Answers
+ 4
<button onclick="window.location.href = 'yourpage.html';"> Name </button>
22nd Aug 2019, 8:22 AM
Uchiha Itachi
Uchiha Itachi - avatar
+ 1
href="#"
22nd Aug 2019, 8:25 AM
Solo
Solo - avatar