I have been thinking about this problem. With CSS it might work

Here is a simple setup to illustrate. Let me know what you find

Ben

<pre>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
        <title>Untitled</title>
<style>
.vis {visibility: visible}
.novis {visibility: hidden}
</style>
</head>

<body>

<SCRIPT language="JavaScript">
<!-- Begin JavaScript
function PrintMe(theObject)
{
        document.Report.Print.className = "novis"
//place print code here

//to return the visibilty of this button
//      document.Report.Print.className = "vis"
}
// -- End JavaScript -->
</SCRIPT>


<form name="Report">
<input type=button name="Print" value="Print" class="vis"
onClick="PrintMe(this);">
</form>


</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 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

Reply via email to