Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- function getDocHeight() {
- var D = document;
- return Math.max(
- Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
- Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
- Math.max(D.body.clientHeight, D.documentElement.clientHeight)
- );
- }
- var docheight = ( getDocHeight() ) +'px';
- // alert( docheight );
- document.getElementById('pusher').style.height = docheight;
- </script>
- <div id="pusher">This content is shown on the page</div>
- <p>Anything here is below the fold of the page and you will need to scroll down to see me</p>
Advertisement
Add Comment
Please, Sign In to add comment