TCH-Thomas Posted October 16, 2004 Posted October 16, 2004 Is there any way I can use a image for people to click on instead of the "Print This Page" link that is used in this script? ============================================================Script: Print Current Window From A Link Function: Opens printer dialogue to print current page Browsers: Version 4 and later (others degrade gracefully) Author: etLux ============================================================ Step 1. Put the following script in the head of your page. <script> // © 2000 www.CodeLifter.com // http://www.codelifter.com // Free for all users, but leave in this header function printWindow(){ bV = parseInt(navigator.appVersion) if (bV >= 4) window.print() } ============================================================ Step 2. Put the following in the body of your page. Print This Page ============================================================ Quote
TCH-Dick Posted October 16, 2004 Posted October 16, 2004 >[url="javascript:printWindow()"][img=print.gif][/url] Quote
TCH-Thomas Posted October 16, 2004 Author Posted October 16, 2004 Thanks Dick. I figured it was something easy but those " Quote
TCH-Dick Posted October 16, 2004 Posted October 16, 2004 No problem. Just think of it as any other link. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.