Forum Moderators: open
I created simple 3 files started.html,A.html,B.html
*********
started.html
<HTML>
<HEAD>
<script>
function PrintFrame()
{
windowrames["A"].focus();
window.frames["A"].print();
}
</script>
</HEAD>
<BODY>
</BODY>
</HTML>
<A HREF="#" onclick="PrintFrame()">Print</A>
<IFRAME SRC="A.html" NAME="A" ></IFRAME>
<br><br><br><br><A HREF="B.html" target=A>Click here</A>
*************
*************
A.html
<HTML>
<BODY>
Here i am in window A <a href=http://google.com>google</a>
</BODY>
</HTML>
*************
*************
B.html
<HTML>
<BODY>
Here i am in window B <a href=http://google.com>google</a>
</BODY>
</HTML>
What about loading another domain's page in a blank page with a iframed content and calling the print method on YOUR page - would it print out ok?
Or even embedding the iframed content in another iframe (on your domain) and calling the print method on your iframes document?