# Wrap whole button in a 'a' tag. <a href="https://google.com" class="button"><button class="pixel">Button text</button></a>
a.button { -webkit-appearance: button; -moz-appearance: button; appearance: button; text-decoration: none; color: initial; }
<button onclick="location.href='http://www.example.com'" type="button"> www.example.com</button>