To my mind, a <button>
is rent and act quite different than a <a>
, this being a link. It looks like IE and Chrome are interpreting your HTML in a way that ends up giving the desired result. Obviously Firefox does not interpret the same way.
If you want a link that has the appearance of a <button>
in the browser, it is better not to use the <button>
, and simply use a CSS to change the appearance of <a>
. Something like that:
HTML
<a class="button" href="https://www.google.com">GOOGLE</a>
CSS
a.button {
-webkit-appearance: button;
-moz-appearance: button;
appearance: button;
text-decoration: none;
color: initial;
}
Inspired of that reply in Soen
There is an error generated in the Firefox console?
– brazilianldsjaguar
I tried to look at the console and there is no error when clicking the button. Loading the page displays a JS error, see: Empty string passed to getElementById(). jquery.js:2:0
– Gabriel RV