xxxxxxxxxx
<a href="https://example.com">
<button>Click Me</button>
</a>
xxxxxxxxxx
<button onclick="window.location.href='/page2'">Continue</button>
xxxxxxxxxx
<button onclick="location.href='http://www.example.com'" type="button">
www.example.com</button>
xxxxxxxxxx
<button onclick="window.location.href = 'https://your-url-here.com';">Click me</button>
xxxxxxxxxx
<button onclick="window.location.href = 'https://example.com';">Click me</button>
xxxxxxxxxx
<form method="get" action="/page2">
<button type="submit">Continue</button>
</form>
xxxxxxxxxx
<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
xxxxxxxxxx
<!--
There are many ways, you can do it, but the best I think is that we will surrond
a button inside a link so that it would work like one!
-->
<a href="www.youtube.com">
<button>
Youtube
</button>
</a>