I recently installed LesterChan’s plugin, WP-Print. It is a great plugin and works wonderfully, but I had just one issue with it. When you click on “Print this Post/Page,” you would be taken to the printer friendly page, but no print dialog would come up. You would have to actually hit Cmd-P (or Ctrl-P for you misguided Windows users) or click the little link at the bottom to get the print dialog.
Well, I wanted something a little more lazy – I mean “user friendly” – so I came up with this nifty little JavaScript. The easiest way to implement it is to put it into the Disclaimer/Copyright Text area on the WP-Print settings page.
<script>function printme() {window.print(); return false;} window.onload=printme;</script>
Enjoy!


