why you should use link instead of button code example
Example 1: a link button
<input type="button" onclick="location.href='https://google.com';" value="Go to Google" />
Example 2: How to create an HTML button that acts like a link?
<button onclick="window.location.href='test.html'">Continue</button>