One of the method we can refer to is the global
location object. It does provide some method for us to do the redirect.
Or we can assign the url directly to the object.
location = "http://google.com" // more explicit way location.href = "http://google.com";
If you want a more explicit way:
window.location.href = "http://google.com";
Open developer tool and try any of these in the console, you will be redirect, good bye!
(welcome back if you come back from redirect page)
What about jQuery ?
$(location).attr('href','http://www.google.com') $(window).attr('location','http://www.google.com') $(location).prop('href', 'http://www.google.com')
Extra: Reload Page
In some case you might want to force your page to refresh to get latest UI update or anything from server. In that case
location.reload would be useful.