How do print specific content inside the iframe
问题 <script type="text/javascript"> function printDoc() { document.getElementById("frame_singleCheque").contentWindow.print(); } </script> <iframe style ="height:400px; width: 750px; overflow:scroll;" id="frame_singleCheque" src="http://www.w3schools.com"></iframe> <input type="button" id = "btnCPrint" value = "Print" onclick="javascript:printDoc()" /> Error [16:41:44.054] Error: Permission denied to access property 'print' @ http://localhost/pdf/print.php:3 i have verified with lot of stack