Why IE and Firefox cannot open a link inside the button tag, In chrome it opens the link in same window.
Example:
<button type="button"><a href="http://stackoverflow.com">stackoverflow</a></button>
Why IE and Firefox cannot open a link inside the button tag, In chrome it opens the link in same window.
Example:
<button type="button"><a href="http://stackoverflow.com">stackoverflow</a></button>
It'not allowed to have link inside a button, according to HTML5 specifications
Content model: Phrasing content, but there must be no interactive content descendant.
a
is interactive content descendant
I don't know why but you should do it like this:
<a href="http://stackoverflow.com"><button type="button">stackoverflow</button></a>