to

The to() method of the Location interface redirects the user to another page

Example

window.location.to(URL)
window.location.to("https://rhodium.com")

Last updated