avoid browser pop up blockers

Solutions on MaxInterview for avoid browser pop up blockers by the best coders in the world

showing results for - "avoid browser pop up blockers"
Angelo
09 Jan 2019
1printButtonClicked: function(){
2    $.post("/ajax/friendlyPrintPage", postData).done(function (htmlContent) {
3        var id = (new Date()).getTime();
4        var myWindow = window.open(window.location.href + '?printerFriendly=true', id,
5        "toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=1,width=800,height=600,left = 240,top = 212");
6        myWindow.document.write(htmlContent);
7        myWindow.focus();
8    })
9}