Hi, just tested this code, I have revised it from the last post.
I tested it under Netscape 7.0
There was one major bug, I named the button "Print", I changed it to
"toPrint"
<pre>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Hide Print Button Test</title>
<style>
.vis {visibility: visible}
.novis {visibility: hidden}
</style>
</head>
<body>
<SCRIPT language="JavaScript">
<!-- Begin JavaScript
function PrintMe(theObject)
{
document.Report.toPrint.className = "novis";
window.print();
document.Report.toPrint.className = "vis";
}
// -- End JavaScript -->
</SCRIPT>
<form name="Report">
<input type=button name="toPrint" value="Print" class="vis"
onClick="PrintMe(this);"> </form>
<h1>Button, Button! Where is the Button?</h1>
</body>
</html>
</pre>
Ben Johansen - http://www.pcforge.com
Authorized Witango Reseller http://www.pcforge.com/WitangoGoodies.htm
Latest downloads & List Archives @ http://www.witango.ws
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Dan Stein
Sent: Wednesday, August 28, 2002 10:11 AM
To: Multiple recipients of list witango-talk
Subject: Re: Witango-Talk: [OT] JavaScript
Nope not what I want to do.
I want them to print the page but not have the printed document show the
words( link) print this page or the words ( link) back
Both of which are used for navigation.
--
Dan Stein
Digital Software Solutions
799 Evergreen Circle
Telford PA 18969
Land: 215-799-0192
Mobile: 610-256-2843
Fax 413-410-9682
FMP, WiTango, EDI,SQL 2000
[EMAIL PROTECTED]
www.dss-db.com
> From: "John W. Arnold" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Wed, 28 Aug 2002 09:52:43 -0700
> To: Multiple recipients of list witango-talk
<[EMAIL PROTECTED]>
> Subject: RE: Witango-Talk: [OT] JavaScript
>
> You can set the page header to no-cache.
> If the user does use the back or print then page won't be there to
print.
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Dan Stein
> Sent: Wednesday, August 28, 2002 9:22 AM
> To: Multiple recipients of list witango-talk
> Subject: Witango-Talk: [OT] JavaScript
>
>
> Is there a JavaScript that will keep something on the page from being
> printed. I have a report I want them to print but I don't want print
page or
> the back link to print on the report.
>
> --
> Dan Stein
> Digital Software Solutions
> 799 Evergreen Circle
> Telford PA 18969
> Land: 215-799-0192
> Mobile: 610-256-2843
> Fax 413-410-9682
> FMP, WiTango, EDI,SQL 2000
> [EMAIL PROTECTED]
> www.dss-db.com
>
>
>
________________________________________________________________________
> TO UNSUBSCRIBE: send a plain text/US ASCII email to
[EMAIL PROTECTED]
> with unsubscribe witango-talk in the message body
>
>
________________________________________________________________________
> TO UNSUBSCRIBE: send a plain text/US ASCII email to
[EMAIL PROTECTED]
> with unsubscribe witango-talk in the message body
>
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
with unsubscribe witango-talk in the message body
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
with unsubscribe witango-talk in the message body