How do you redirect to a page from another page with JavaScript?

6 s
6

To redirect to another page, you can use:

window.location = "http://www.yoururl.com";

Leave a Reply

Your email address will not be published. Required fields are marked *