legs
0
Q:

html button click url

# Wrap whole button in a 'a' tag.
 <a href="https://google.com" class="button"><button class="pixel">Button text</button></a>
0
a.button {
    -webkit-appearance: button;
    -moz-appearance: button;
    appearance: button;

    text-decoration: none;
    color: initial;
}
0
<button onclick="location.href='http://www.example.com'" type="button">
         www.example.com</button>
-1

New to Communities?

Join the community