+ 3
How to use a hyperlink with button tag.
4 Réponses
+ 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