how to send a redirect from javascript and reference the new page 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/";