how to head to another website in javascript html code example Example: jquery redirect to url $(location).attr('href', 'https://google.com');