Fails on IE5/Mac.
Here's the best you can do -
Put this in the head of the document -
<script type="text/javascript">
function print_page(where){
var is_mac=(navigator.platform.indexOf("ac") != -1);
(document.all && is_mac)?
alert("Select \"Print\" from the menu") : where? where.window.print() :
window.print();
}
function writeOutPrintLink(){
document.getElementById('printLink').innerHTML = '<a
href="javascript
![Stick Out Tongue :p :p](/styles/default/custom/smilies/tongue.gif)
rint_page();">Print this</a>'
}
</script>
Adjust the body tag of the document as follows -
<body ... onload="writeOutPrintLink();"> (where the ellipsis indicates
already existing attributes, if any)
<span id="printLink"></span>
That way, the link only shows up if you have javascript enabled.