js redirect to page on load code example Example: javascript redirect window.location.href = "http://mywebsite.com/home.html";