Results 1 to 2 of 2

Thread: How to hide print button when printing

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    145

    How to hide print button when printing

    Hi,

    I am using window.print to print a web page. But the problem is the print button is also printed.

    Is there a way to hide the button as to not appear when I print the form.

    Many thanks.

  2. #2
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131
    It's possible with CSS2.

    Look up @media print and @media screen - different styles for different media types.

    You can assign a class to your print button and then set the visibility to hidden for print.

    HTH

    DJ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width