
Originally Posted by
simonf
<body onLoad="if (document.all&&window.print) readymessage()", "init()">
should work
No, it shouldn't.
HTML Code:
<body onload="if(document.all && window.print){readymessage();}init();">
However, if the if statement is meant to detect IE, it would be better to use Internet Explorer's conditional comments:
HTML Code:
<body onload="init();">
<!--[if IE]>
<script type="text/javascript">
(function(fn) {
window.onload = function() {
readymessage();
if(fn) {fn();}
};
})(window.onload);
</script>
<![endif]-->
[Untested]
Mike
Bookmarks