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 derfloh 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
Joined
Apr 18, 2000
Messages
1
Location
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.
 
I don't like that feature...from a security standpoint... <p>REH<br><a href=mailto:hawkdogg@crosswinds.net>hawkdogg@crosswinds.net</a><br><a href= by Linux</a><br>Learn Linux and Leave out the Windows :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top