?redirect js code example
Example 1: redirect with javascript
window.location.replace('http://mywebsite.com/home.html');
Example 2: javascript howdo i redirect-to another webpage
window.location = "https://example.com/";
window.location.replace('http://mywebsite.com/home.html');
window.location = "https://example.com/";