jquery - Print iframe with pdf src in mozilla firefox -


jquery script

function printpdf(url) {     var iframe = this._printiframe;     if (!this._printiframe) {         iframe = this._printiframe = document.createelement('iframe');         document.body.appendchild(iframe);          iframe.style.display = 'none';         iframe.onload = function () {             settimeout(function () {                 iframe.focus();                 iframe.contentwindow.print();             }, 1);         };     }     iframe.src = url; } 

above script work in chrome in mozilla that's download pdf not print


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -