In Chrome it works fine, but in Firefox I get this error:
Error: Permission denied to access property 'print'
My code:
<iframe src="http://domain.com/wp-content/uploads/2014/08/CV.pdf" id="PDFtoPrint"></iframe>
<a class="" href="#" title="Print CV" onclick="document.getElementById('PDFtoPrint').focus();document.getElementById('PDFtoPrint').contentWindow.print();"></a>
I see this bug on firefox forum.Is it solved?
Any other solutions?
Thanks!
EDIT: on IE I get this error:
SCRIPT65535: Invalid calling object