3 <SCRIPT type=
"text/javascript" language=
"JavaScript">
4 function PrintIframe() {
6 //window.frames[
"inner_frame"].focus();
7 //window.frames[
"inner_frame"].print();
9 //document.inner_frame.focus();
10 //document.inner_frame.print();
11 // IE7 way. That's the way Safari does it.
12 window.frames[
"inner_frame"].document.execCommand('print',false,null)
14 function DelayedPrint() {
15 setTimeout(PrintIframe,
0);
18 <body onload=
"javascript:DelayedPrint()">
21 <a href=
"javascript:PrintIframe()"><img src=
"click_me.png" /></a>
24 <iframe src=
"test2.html" id=
"inner_frame" style=
"height:150px; margin:0px; padding:0px"><html><body>A
</body></html></iframe>
27 <img src=
"sadtab.png" />