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