javascript transfer to another page code example Example: javascript transfer to another page window.location.href = "http://mywebsite.com/home.html";