Page 1 of 1

print the content page using iframe in all browser

Posted: Tue Feb 25, 2014 11:09 pm
by vijayalakshmi

Code: Select all

<html>
<head>
<title>Example Report</title>
<script type="text/javascript">
    function myPrint() {
    window.frames.frame.focus();
    window.frames.frame.print();
    }
</script>
</head>
<body>
<p>Hi! This is IFrame Test 33</p>
<iframe width="1024" height="900" id="frame" name="frame" src="http://logpass.com/print test/story.html"></iframe>
 <a href="#" onclick="javascript:myPrint();">Print</a>
</body>
</html>
But it is not worked to all browser.... Pls suggest anyone to print the iframe content in all browser...