window.location.href = url(‘newpagelocation.html’)
As an example, within the head of the html page add
and in the body of the page add
<form id="Form1"> <input onclick="redirect()" type="button" value="Next" ID="Button1" NAME="Button1"> </form>
If the aim is to reload the current page, then there is a simpler specific method.
A full reference will be required to the new URL otherwise the page will be taken to be relative to the current domain.