Re: JS Print - Icon?
by "Rythmist" <Rythmist(at)gamewood.net>
|
Date: |
Thu, 25 Jan 2001 03:22:53 -0500 |
To: |
"David Andrew" <davida51(at)swbell.net>, <hwg-languages(at)hwg.org> |
References: |
swbell |
|
todo: View
Thread,
Original
|
|
Try this:
<form>
<p><input type="image" border="0" src="printer.jpg" name="prnbutton"
width="34" height="20" onclick="window.print()">Print this page</p>
</form>
Or
<a href="#" onclick="window.print()"><img src="printer.jpg" height="20"
width="34">Print This</a>
Rythmist
----- Original Message -----
From: "David Andrew" <davida51(at)swbell.net>
To: <hwg-languages(at)hwg.org>
Sent: Thursday, January 25, 2001 2:02 AM
Subject: JS Print - Icon?
> Hi all -
>
> I am using the following script to invoke the print dialog box:
>
> <script language="JavaScript1.2">
> <!--
> document.write('<FORM><INPUT TYPE="BUTTON" VALUE="Print this page."
> onClick="window.print()"><\/FORM>');
> //-->
> </script>
>
> Question - is there a way to substitute a icon (say of a printer) in
> place of the JS print button?
>
> I think this question has been asked and answered in the past, but the
> archive pages are still down.
> --
> David Andrew
> davida51(at)swbell.net
>
>
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA