+ 4
How do I redirect to another webpage?
How can I redirect the user from one page to another using jQuery or pure JavaScript?
3 Answers
+ 4
window.location.replace("https://google.com")
+ 4
window.location.assign(url)
window.location.replace(url)
window.location.href=url
+ 3
uses the recommendations of Google, otherwise the site will be punished