Show print link on screen only

G

Guest

I am using the following code to display a "print this page" link but I only
want the link to show on the screen, not on the hard copy.

What am I missing?

*****************************************
In Header:
<script>

function printWindow(){
bV = parseInt(navigator.appVersion)
if (bV >= 4) window.print()
}
</script>

In Body:
<a href="javascript:printWindow()"><font size="2">Print This Page</font></a>
***********************************************************
 
H

Helpful person

Ken said:
I am using the following code to display a "print this page" link but I only
want the link to show on the screen, not on the hard copy.

Use separate CSS files for print and screen. On the print one set the
property of your "print this page" object property to display:none

www.richardfisher.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top