There's a really long method of doing it that would work, but would 
involve server-side browser detection, and a database containing a list 
of browsers that support print shortcuts.

Stick with the JS.



><i>To print</i>: <a href="javascript:if (window.print != null) {
>window.print(); }
> else { alert('Unfortunately, your browser does not support this shortcut.
>Please select Print from the File menu.'); }">
><b>Click here</b></a> <i>or</i> Select <b>File</b>
>and then <b>Print</b> from your browser's menu.
>Is there an equivelant bit of code to do this printer shortcut with php?
>Chip Wiegand
>Computer Services
>Simrad, Inc
>Lynnwood, WA
>"There is no reason anyone would want a computer in their home."
> --Ken Olson, president, chairman and founder of Digital Equipment Corp.,
>          (-- Then why do I have nine? Somebody help me!)

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to