javascript redirect new window code example Example: javascript redirect new window window.location.href = "http://mywebsite.com/home.html";