just a question

Results 1 to 3 of 3

Thread: just a question

  1. #1
    Kate Guest

    Default just a question

    I know this isn&#039;t asp related but does anyone know of a way to have a print icon on a page in view of printing it but without the icon appearing on the printed page.<BR><BR>All this without using frames.

  2. #2
    Join Date
    Dec 1969

    Default RE: just a question

    Using IE, it&#039;s possible. IE has onbeforeprint() and onafterprint() event handlers. You can use these to hide the icon, print, and then show the icon again.<BR><BR>If you&#039;re aiming for cross-browsable, I would suggest a separate "printable" version. Not as neat, but guaranteed to work.

  3. #3
    Join Date
    Dec 1969

    Default blank image

    In the onclick event change the image src to a blank image (i.e. a tiny transparent gif). Something like:<BR>&#060;IMG Src="print.gif" onclick="this.src=&#039;blank.gif&#039;;window.pri nt();"&#062;<BR>

Posting Permissions

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