<!DOCTYPE html> <html> <body style="height:1000px"> <script> var docElement = document.documentElement; docElement.style.display = 'none'; docElement.offsetTop; docElement.style.display = ''; </script> </body> </html>