<button onclick url code example
Example 1: onclick url
<button onclick="location.href='logout.php';">logout</button>
Example 2: 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>