How do I make a coupon I made on my website print to their default printer. I'm using dreamweaver 8.
Printable View
How do I make a coupon I made on my website print to their default printer. I'm using dreamweaver 8.
Do you mean automatically? Without them hitting the print button?
yes is there a way to do that?
Think this through Kodiak, you really want to bypass their security and send something to print without the user's permission?
I mean when they click on the coupon it prints to their printer so they can print it and bring it in for whatever off on my services. I meant automatically but they need to hit a print button first. Sorry about that.
Add a print link calling a javascript:
Of course your imagination can put it as a button or as a script called upon page being loaded...Code:<a href="javascript:window.print()">Print the page</a>
Phew, I thought you wanted to open a complete can of worms there!
That code is about the only way to do it. If you have no jscript, then you have a printable page button which opens the image in its own page for the user to press the print page button.
Also dreamweaver article here
I used the code and it makes it print but it prints the whole page. I will look into what your talking about NooNoo.
There are page breaks and stuff you can do about that... read the dreamweaver article.
Look at @media for CSS.
http://www.w3.org/TR/CSS2/media.html
You'll want to create a CSS for print layout...
I'll have to fool around with this one a bit on my spare time. Thanks for the input.