javascript button redirect to a point in the website code example Example: href on a button <button onclick="window.location.href='/page2'">Continue</button>