Skip to content Skip to sidebar Skip to footer

Using Href Attribute For Button Element

I need that use href='' attribute for button like this Instead of that's wrong . I think that I've to try th

Solution 1:

Solution 2:

Why you don't use <a type="button" href=""></a>

Or if you really want a button, so <button onclick="window.location.href=""></button>

Solution 3:

href attribute can not be used on button tag , if you want button like appearance for your a tag you can use add style to your a tag and make it look like button , add bootstrap reference then add button class to your anchor tag. Custom Bootstrap Button , but if you still want to use button tag then adding onclick event is better option

Post a Comment for "Using Href Attribute For Button Element"