
Return to the HTML Tips
Add a Print Button
Note: In code examples I add a period after each left arrow
bracket so the code can be viewed in all email programs. If
you copy and paste, be sure to remove the periods or it won't
work.
Insert in html an url reference
<.A title="Print" href="javascript:self.print()"><.IMG border=0 src="Printer.gif">
or
<.INPUT type="submit" name="Print" value="Print" onclick="window.print()">
or
<.a href="javascript:" onclick="window.print()">Print
or
From: "Decourcyellis, Paul A [GPB/0402]"
Subject: RE: Print Button
you can use a standard button, like this
<.input type="button" value=" Print this Page " onClick="printPage();">
then add some javascript in your header
function printPage() {
window.print()}
NOTE: Remove the period after the first "less than" sign before using the code.
[report a broken link by clicking here]






