Help with Printing

S

Suzie

Hi
I am providing a "print friendly version" of a membership application form
which opens up in a new window. Could some kind person please tell me how I
put in a print command button so that it works???

Or any other suggestions that would point a viewer to be able to print the
form? (without having to use their print button on their browser).

I'd appreciate any help offered.

Thanks.
Suzie
 
M

Murray

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="javascript:print_page()">Print this</a>
 
S

Suzie

Thanks Murray, that works great. Really appreciate your time and trouble to
help me out.

Thanks again. Suzie
 

Ask a Question

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.

Ask a Question

Top