I want to print iFrame content using javascript. I've tried to following but it only works in Chrome.
window.frames[frameid].print();
and
var iframe = document.getElementById("iframeID").contentWindow;
iframe.focus();
iframe.print();
It is not working on Mozilla Firefox.
I'm showing PDF in iFrame on a page.