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