open link in new tab jquery
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');
}
5
1
window.open('_link is here_', 'name');
Thank you!
1
0
4
4
window.open('http://stackoverflow.com/', '_blank');
Thank you!
4
0
Are there any code examples left?
New code examples in category Javascript