href auf einem Knopf
<button onclick="window.location.href='/page2'">Continue</button>
STIFLER
<button onclick="window.location.href='/page2'">Continue</button>
<button><a href='https://google.com' alt='Broken Link'>This is a button</a></button>
<!-- if you are on Window : -->
<button onclick="window.location.href='page2.html'">
Button
</button>
<!-- if you are on linux or macOS : -->
<button onclick="location.href='page2.html'">
Button
</button>
onclick="location.href='http://www.hyperlinkcode.com/button-links.php'"
<button onclick="location.href='http://www.example.com'" type="button">
www.example.com</button>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<button class="btn btn-success">¿Soy un botón o un enlace?</button>
<a href="www.google.com" class="btn btn-success">¿Soy un botón o un enlace?</a>
EjecutarEsconder resultados