What does document.body.offsetHeight do before print?

Posted by systempuntoout on Stack Overflow See other posts from Stack Overflow or by systempuntoout
Published on 2010-05-03T20:14:04Z Indexed on 2010/05/03 20:18 UTC
Read the original article Hit count: 197

Filed under:
|

Sniffing gmail's Print all link source code, there's something like this:

<script>
function Print(){document.body.offsetHeight;window.print()};
</script>
</head>
<body onload="Print()">

What does document.body.offsetHeight do?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about gmail