when a button is click move to next page in html code example Example: href on a button <button onclick="window.location.href='/page2'">Continue</button>