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 -

python - Error: Unresolved reference 'selenium' What is the reason? -

asp.net ajax - Jquery scroll to element just goes to top of page -