JavaScript Open Link w nowej zakładce
function NewTab() {
window.open(
"https://www.yourURL.com", "_blank");
}
Woolly Necked Stork
function NewTab() {
window.open(
"https://www.yourURL.com", "_blank");
}
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');
}
window.open('_link is here_', '_blank');
// _blank - URL is loaded into a new tab. This is default.
// _parent - URL is loaded into the parent frame
// _self - URL replaces the current page
// _top - URL replaces any framesets that may be loaded