“Redirect ke tautan menggunakan jQuery di tab baru” Kode Jawaban

JavaScript terbuka tautan di tab baru

function NewTab() { 
            window.open( 
              "https://www.yourURL.com", "_blank");
}
Woolly Necked Stork

jQuery buka tab baru

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');
}
Yucky Yak

Redirect ke tautan menggunakan jQuery di tab baru

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
CodePadding

Jawaban yang mirip dengan “Redirect ke tautan menggunakan jQuery di tab baru”

Pertanyaan yang mirip dengan “Redirect ke tautan menggunakan jQuery di tab baru”

Lebih banyak jawaban terkait untuk “Redirect ke tautan menggunakan jQuery di tab baru” di JavaScript

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya