how to redirect to another page of the same page using javascript code example
Example 1: redirect with javascript
window.location.replace('http://mywebsite.com/home.html');
Example 2: js go to page
window.location.href = "http://example.com/new_url";