View Single Post
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

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:

@media print
  .printP {display;none;

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

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

function DoPrint()
document.all("cmdPrint").style.visibility = "hidden";
document.all("cmdPrint").style.visibility = "visible";

and then
<P align="right">
<input id="cmdPrint" type="button" value="Print" onclick="D

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