How to go from one page to another page using javascript? Redirect to another page using javascript window.location.href = "http://example.com/new_url";