how to redirect to another page of a same site in jquery code example Example: jquery redirect to url $(location).attr('href', 'https://google.com');