Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print button 1

Status
Not open for further replies.

JeroenB

Programmer
Apr 8, 2001
93
BE
Hi,
I want to make a print button;
someone knows how to do this ?

Thanks
JeroenB
 
JeroenB,

You can either use an image with the onClick event or use the following:

<INPUT TYPE=&quot;BUTTON&quot; NAME=&quot;PRINT&quot; VALUE=&quot;PRINT&quot; onClick=&quot;javascript:window.print()&quot;> Mise Le Meas,

Mighty :)
 
Thanks,

do you also know if it is possible to do the following :
I have 2 gif's in my page which I do not want to be printed;
Is there ane way to do so ?
 
You can use an onbeforeprint function to hide the images before printing and an onafterprint function to reshow them. I use the same technique to prevent the print button from print on a page. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
I want to create a print button on the bottom of my webpage. the webpage consists of one large jpeg. I want to create a button that will save the jpeg, open it in paint, and print it from there. b/c printing the webpage from the browser, doesn't print the entire page, not is it readable.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top