Show print link on screen only

  • Thread starter Thread starter Guest
  • Start date Start date
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>
***********************************************************
 
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

Similar Threads

Interactive Button for Printing 5
error code 3
Printing from MS IE 7.0 5
Print button with Frames 7
Print page - but not button 1
Print from Explorer 7. does not work 1
Problem with javascript 8
CSS for printing 3

Back
Top