how to go to another page from one page using js code example Example: javascript redirect window.location.href = "http://mywebsite.com/home.html";