Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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');
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #open #tab
ADD COMMENT
Topic
Name
1+3 =