jquery redirect
snippet in javascript

jquery redirect

user2161

// 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 another webpage

user4921

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