"Print this Page" command

J

James F

Can I put a simple print command link on my confirmation
page? I do not see an option in the Frontpage tools but
I'm sure their is some code I can place in my HTML.
 
M

Murray

Such code is problematic because as far as I know it will always fail in
IE/Mac. However, you can try this as a workaround -

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>
 
B

Bob Richardson

Do "All" browsers have a Print button? At least most do.

The problem with the "print" button on browsers is that it prints the entire
page, including headers, footers, etc. which just takes up time and ink, and
often forces your output needlessly onto two pages.

An approach I like is to have a "printer friendly page" link - which would
show just the info you want to have printed. Then the user could print it
out with the browser's "print" button, without the above drawbacks.
 
M

Murray

Yeah - I like that one. My research has shown that nearly everyone knows
how to use FILE | Print.... 8)
 

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