How to hide the "print button" on printing page

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
vinoth
Forum Contributor
Posts: 113
Joined: Thu Aug 02, 2007 3:08 am
Location: India
Contact:

How to hide the "print button" on printing page

Post by vinoth »

Hi all

I am using javascript print function to print the page, It was working fine.
But in the print outsheet it prints the button["Print the page"].
Any possible way to hide this on print sheet
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Post by VladSun »

Code: Select all

                @media print
                {
                        #PrintButton
                        {
                            display: none;
                        }
                }

There are 10 types of people in this world, those who understand binary and those who don't
vinoth
Forum Contributor
Posts: 113
Joined: Thu Aug 02, 2007 3:08 am
Location: India
Contact:

Post by vinoth »

Hi VladSun

Thanks for information you provided, Its working fine
Post Reply