Answers for "avoid-browser-pop-up-blockers"

0

avoid-browser-pop-up-blockers

printButtonClicked: function(){
    $.post("/ajax/friendlyPrintPage", postData).done(function (htmlContent) {
        var id = (new Date()).getTime();
        var myWindow = window.open(window.location.href + '?printerFriendly=true', id,
        "toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=1,width=800,height=600,left = 240,top = 212");
        myWindow.document.write(htmlContent);
        myWindow.focus();
    })
}
Posted by: Guest on June-19-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language