javascript redirect on page load code example
Example 1: js onclick redirect
<button onclick="location.href='www.yoursite.com'">Click Me</button>
Example 2: javascript redirect
window.location.href = "http://mywebsite.com/home.html";
Example 3: javascript howdo i redirect-to another webpage
window.location = "https://example.com/";