Adding a Print Button

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there -

I know this maybe a simple question for some of your, but here it goes...

Can anyone tell me how to successfully add a print button to an existing
form so that the form prints to the default printer? I don't know much about
Java Scripting, so if it requires Java, please let me know what to do. I am
an idiot in that area.

Much appreciated.
 
You can do this with JavaScript. There are some great free scripts available
at javascript.internet.com and www.dynamicdrive.com

A good script that seems to work ok in IE is at:
http://javascript.internet.com/buttons/page-printer.html

I haven't tested it with other browsers though so if supporting other
browsers is needed you may just want to shop around a little bit more on
those two sites for more cross-compatible print button scripts.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP- FrontPage
 
Thanks for this info.

Since I am new to Java Scripting, how do you enter info into the Head and
Body of the document?

Thanks
 
Read the instructions for the script.. It tells you exactly where to place
the code:


<!-- TWO STEPS TO INSTALL PAGE PRINTER:

1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->



<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
 
Back
Top