Not exactly a servlet question!
A solution for browsers which support CSS would be.
<INPUT NAME="print" TYPE="button" VALUE="Print this Document!"
ONCLICK="varitext()" STYLE="display:none">
on 18/10/2001 19:57, Denis Lepage at [EMAIL PROTECTED] wrote:
> How can I hide the print button so it would not print when I ckick on it
>
>
>
> <SCRIPT LANGUAGE="JavaScript">
>
> function varitext(text){
> text=document
> print(text)
> }
> // End -->
> </script>
>
> </HEAD>
> <BODY>
>
> <p align="center">
> <INPUT NAME="print" TYPE="button" VALUE="Print this Document!"
> ONCLICK="varitext()">
> </html>
>
>
>
>
>
> Thank you
> Denis LePage
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html