Q:

jquery redirect to url

// similar behavior as an HTTP redirect
window.location.replace("http://stackoverflow.com");

// similar behavior as clicking on a link
window.location.href = "http://stackoverflow.com";
8
$(location).attr('href', 'https://google.com');
4

New to Communities?

Join the community