+ 3
How to use a hyperlink with button tag.
4 Answers
+ 1
Either this:
<a href = âwebsite-name.comâ><button>Click to go to website-name.com</button></a>
Or this:
<button onclick = âwindow.open(âwebsite-name.comâ);â>Click to go to website-name.com</button>
In both examples, replace website-name.com with the name of the website.
Hope this helps!
+ 5
<a href="#"><button></button></a>
if you want to make any element behave like an hyperlink...just nest in <a></a> tags
+ 1
<a href= "#"><button>#</button></a>
Nest the button tag in the <a> hyperlink tag