View Single Post
  #3 (permalink)  
Old October 7th, 2004, 02:47 AM
elisabeth elisabeth is offline
Authorized User
 
Join Date: Feb 2004
Location: , , .
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don't understand what you mean by seeting the display:none property instead of the visibility. I thought it was what I did before... COuld you explain it please? I am rather new to Javascript and css.
Here is what I did:

.....
<style>
@media print
{
  .printP {display;none;
}
</style>
.....

and then
<span class="printP">
   <input type="button" onClick="window.print()" value="Print this page">
</span>

This does not work with Netscape (worked with Explorer), so I tried:

function DoPrint()
{
document.all("cmdPrint").style.visibility = "hidden";
window.print();
document.all("cmdPrint").style.visibility = "visible";
}

....
and then
<P align="right">
<input id="cmdPrint" type="button" value="Print" onclick="D
oPrint()">
</p>

It even worse....I don't even manage to get the "print screen" (I get it with Explorer though!).




Reply With Quote