Jump to content

Recommended Posts

Posted

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

 

============================================================

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...