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: 219
JavaScript
|gmail
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