+ 1
Button links in html
Can someone please tell me how to make a button that if it's clicked opens another html document in the same folder
8 Respostas
+ 2
If you really want to use a button use onclick event:
<button onclick="window.location.href='/page2'">Continue</button>
+ 2
See It Here: https://code.sololearn.com/Wa18A20A22A9
I Specially Made It For You!
Hope This Helped You...
+ 1
Noo HrCoder either use button or a link not together)))
0
Bro just style a link as a button))
0
Aleksei Radchenkov idk what you mean sorry can you explain it to me pls
0
thy HrCoder
- 1
<a href="example.html"><button>Example</button></a>
- 1
You can use inline JavaScript for this. Eg. <button onclick="window.location.href='url'">button</button>