Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q1478 Is there a way using JavaScript to have a button on a page with frames print a specific frame?

irt.org | Knowledge Base | JavaScript | Print | Q1478 [ previous next ]

Q1478 Is there a way using JavaScript to have a button on a page with frames print a specific frame?

In Internet Explorer 4, no - the print must be an activeX embedded in the page you need ot print and even then if you try to print from another frame, that other frame gets the focus and Internet Explorer 4 will try to print that instead.

In Netscape Navigator 4+ and Internet Explorer 5 you can simply do this:

<FORM>
<INPUT TYPE="button" onClick="if (window.print) { top.otherframe.focus(); top.otherframe.print()}">
</FORM>

Feedback on 'Q1478 Is there a way using JavaScript to have a button on a page with frames print a specific frame?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.