Yes, I did that actually.
I’d also like to have a button though because people don’t seem to be that "savvy" to just hit print...
I really like exactly how the Print button on this site (the forums) makes it into a black and white simple text page. How is that done then? I figured it would be using Modx, but I suppose any way would be great if it works.
This will give you a button:
<div class="dontprint">
<form><input type="button" value=" Print this coupon "
onclick="window.print();return false;" /></form>
</div>
The "dontprint" class is set to hidden in the CSS file so you don’t print the button.
Well the print using the <form> does work.
I guess I was hoping for it to open in a new window without formatting. I did create a css print style, so the user can just us File>Print, but I’d like to have a styled button so that it’s not the automatically generated one and it is something obvious that the users can find easily.
How do you do this?
That would work out great. I might use the on window click.
I would love it to work like it does on this forum page where it opens in a new window, so if anyone knows how to do this, that would be wonderful. Thank you!
Quote from: klarsen7 at Oct 02, 2009, 10:15 AM
That would work out great. I might use the on window click.
I would love it to work like it does on this forum page where it opens in a new window, so if anyone knows how to do this, that would be wonderful. Thank you!
Ummm... that’s what I originally suggested.