Answers for "jquery ajax open new tab"

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');
}
Posted by: Guest on September-14-2020
0

ajax open new tab with post

$.post(url, function (data) {
    var w = window.open('about:blank');
    w.document.open();
    w.document.write(data);
    w.document.close();
});
Posted by: Guest on April-30-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language