javascript change the redirect to url code example Example: javascript redirect window.location.href = "http://mywebsite.com/home.html";