jquery redirect to url
snippet in javascript

jquery redirect

user9323

// 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";

jquery redirect to url

user432

$(location).attr('href', 'https://google.com');