jquery redirect to another webpage

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

Also in JavaScript: