Click to See Complete Forum and Search --> : print button, visible but not printable?


leonardm
05-12-2003, 08:32 AM
I have a submit button on a pop-up window that is used to print the content of the window. How can I acheive to print the content of the window without printing the button also?
Any suggestions?

pyro
05-12-2003, 08:58 AM
You can do this with CSS. Give the button an id and then set that id to be hidden in a print stylesheet, something like this:

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

If you button looks like this <input type="button" id="hideprint" value="Print"/>

leonardm
05-12-2003, 03:11 PM
great! It works perfect.
First time I use this forum....
Will be back....