print the content page using iframe in all browser
Posted: Tue Feb 25, 2014 11:09 pm
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>