How do I redirect with JavaScript?

Lucky13 picture Lucky13 · Jan 20, 2011 · Viewed 1.5M times · Source

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

Answer

seedg picture seedg · Jan 20, 2011

To redirect to another page, you can use:

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