| Murray *TMM* 2004-09-18, 7:15 pm |
| Put this in the head of the document -
<script type="text/javascript">
function print_page(where){
var is_mac=(navigator.platform.indexOf("ac") != -1);
(document.all && is_mac)?
alert("Select \"Print\" from the menu") : where? where.window.print() :
window.print();
}
</script>
Put this in the body of the document -
<a href="java script:print_page()">Print this</a>
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"HannaB" <webforumsuser@macromedia.com> wrote in message
news:cii230$qpr$1@forums.macromedia.com...
> How do I make a "print this page" command for a html page so that the
> viewer can print with one (or two) clicks?
>
> Thanks,
> Hanna
|