Adding a Print Button

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.
 
M

Mark Fitzpatrick

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
 
G

Guest

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
 
A

Andrew Murray

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

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