Javascript Help? Pls anyone..

Results 1 to 2 of 2

Thread: Javascript Help? Pls anyone..

  1. #1
    naomi Guest

    Default Javascript Help? Pls anyone..

    I hav a page. I wanthe usrs to printhe page, I hava one line not to print. how can i stop the usr not print that line andprint rest. pls help,

  2. #2
    Join Date
    Dec 1969

    Default RE: Javascript Help? Pls anyone..

    I have code for that that works in IE, but doesn&#039;t work in Netscape.<BR>Put &#060;div&#062; tags around the line that you don&#039;t want to print.<BR>In your print function, add the code:<BR>document.all.[divname].style.visibility = "hidden"<BR>window.print()<BR>document.all.[divname].style.visibility = "visible"<BR><BR>That will hide the code for the print function, and then have it come up again afterwards.

Posting Permissions

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