Weird...that is the code that was put in using the behavior from
Frontpage....why would it be written like that if it wasn't going to work
properly?
Anyway, your solution worked GREAT!!! I have my hand and my little popup
window, so thank you very much!!
You're welcome. The lesson here is - anytime you do NOT get the pointer,
check your code. It means you have applied the event to something that the
browser doesn't expect to have events applied to.
Can you tell me how to put a "Print This Page" link in the window? Or a
little printer icon?
All programatic print functions will fail on IE5/Mac, so here is 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

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.