View Full Version : print button


asouthern0
09-24-2004, 10:12 PM
How do I make a button where when somebody clicks it, it prints out a certain thing on the page?

Like what I'm wanting to use it with is a "coupon" where the user can click print this coupon and just the coupon prints..nothing else.

Anybody know how to do this?

kittycat
09-24-2004, 11:55 PM
http://javascript.internet.com/messages/print-page.html
http://javascript.internet.com/page-details/window-print.html

Those are only for printing the whole page... you could make the image open in a new/popup window first, not sure how you could do it to only print one thing.

asouthern0
09-25-2004, 07:05 PM
Ok, the second one works great. Thanks! :)