
| Home |
| 3D Images |
| 3D Animations |
| Digital Photos |
| Photo Textures |
| Tutorials |
| Resume |
I wrote this small JavaScript Print function to allow you to place a button anywhere on a page so a user can send the page to a printer. This is great for when you do not want the user to have search around for a print icon on their web browser, or for when you have opened a window that does not display the icons at the top, but you still want to give the user the ability to print. Click on the button below to see how it works: This JavaScript print function is compatible with NetScape Navigator and Microsofts Internet Explorer, versions 4, 5, and above. The Script
If it were not for supporting multiple types of browsers this would be trivial. As it is
there is a special VBscript routine that has to be used for Windows users of IE4. The script
is well documented, so you sould be able to follow what it is doing. If not, then don't
worry. Simply copy and paste the following code anywhere between the <head> and
</head> tags of your web page.The Button
To create a button that when pressed, calls the javascript print function, simply place
the following HTML anywhere in the body of your page.
|