redirect to new tab in jquery code example

Example 1: jquery open a new tab

var win = window.open('http://stackoverflow.com/', '_blank');
if (win) {
    //Browser has allowed it to be opened
    win.focus();
} else {
    //Browser has blocked it
    alert('Please allow popups for this website');
}

Example 2: redirect to link using jquery on new tab

window.open("https://www.yourURL.com", "_blank");

Example 3: jquery open page in new tab

window.open('_link is here_', 'name');