Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
- <script type="text/javascript">
- alert(document.body); // null
- for (var i=1; i<200; i++) {
- document.writeln('<div>'+i+'</div>');
- }
- alert(document.body); // now: object HTMLBodyElement
- $(window).scrollTop(50);
- $(document).ready(function(){
- alert(document.body+' ready'); // object HTMLBodyElement
- });
- </script>
- </head>
- <body>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement