[thelist] Print in IE

.jeff jeff at members.evolt.org
Tue Feb 19 03:05:00 CST 2002


chris,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Chris Price
>
> There's a nice little, ever so simple, print() function
> that works in Navigator for printing the page.  There
> must be an equivalent in Explorer. Can anyone help?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

there is.  you're going to kick yourself too -- it's so simple.

it's the print() method.  tada!  it's available as of ie5+.

to account for those browsers that don't support the print() method, use the
following:

onclick="if(self.print) self.print(); else alert('Please click the print
button from your browser toolbar above.')"

good luck,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/




More information about the thelist mailing list