<input type="button" name="Print" Value="Print this page"
onclick='window.print();'>
You may need to have a special style for printing
If you do, use something like this in the head section
<style type="text/css" media="print">
body {background: white ;} /*...etc....*/
</style>
--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au
As always you are helpful. I appreciate that you look at cross-browser
issues
I put your JS in <head> for a page I wanted to print but altered the HTML to
<input type="button" name="Print" Value="Print this page"
onclick='print_page();'>
so that it looks a bit prettier.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.