<!-- 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>
<button><a href='https://google.com' alt='Broken Link'>This is a button</a></button>
<!DOCTYPE html> <html> <head> <title>Title of the document</title> </head> <body> <form> <input type="button" onclick="window.location.href = 'https://www.w3docs.com';" value="w3docs"/> </form> </body> </html>