javascript navigate code example
Example 1: javascript redirect
window.location.href = "http://mywebsite.com/home.html";
Example 2: javascript go to url
window.location = url;
window.location.href = "http://mywebsite.com/home.html";
window.location = url;