a href click doesn't redirect on another page in jquery code example Example: jquery redirect to url $(location).attr('href', 'https://google.com');