diff --git a/jquery.printPage.js b/jquery.printPage.js index 37a84a3..9834e94 100644 --- a/jquery.printPage.js +++ b/jquery.printPage.js @@ -80,11 +80,17 @@ * Call the print browser functionnality, focus is needed for IE */ function printit(){ - var selector = 'printPage' + pluginOptions.id; frames.printPage.focus(); - frames.printPage.print(); + + if (document.queryCommandSupported("print")) { + frames[0].document.execCommand("print", false, null); + } + else { + frames.printPage.print(); + } + if(pluginOptions.showMessage){ unloadMessage(); }