1. Copy and paste the following code in between the <HEAD> and </HEAD> tags of the document that you want printed:
<script>
<!--
function printpage() {
window.print();
}
//-->
</script>
2. Add the following to your <BODY> tag:
onload="printpage()"
So, your body tag should look something like this:
<body bgcolor="#FFFFFF" onload="printpage()">
3. Customize it to fit your needs.
Cheers
|