In vanilla javascript, you can redirect to a new page using the location property of window object. The syntax would be as follows,
location
function redirect() { window.location.href = "newPage.html"; }