Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I print in Javascript?

Status
Not open for further replies.

nannuris

Programmer
Apr 18, 2000
1
US
I would like to use a button to Print the contents of the frame in IE4 for Mac o/s
 
in netscape, this is impossable (currently), however, in IE, a window.print() function exists. maybee you can use this to your advantage:<br><br>function printIT(){<br>if (window.print()){<br>window.print} else {<br>alert('select File&gt;Print');<br>}<br><br> <p>theEclipse<br><a href=mailto:eclipse_web@hotmail.com>eclipse_web@hotmail.com</a><br><a href=robacarp.webjump.com>robacarp.webjump.com</a><br>**-Trying to build a documentation of a Javascript DOM, crossbrowser, of course. E-mail me if you know of any little known events and/or methods, etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top