Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <body>
- <div id="divy">
- <iframe width='600' height='800' id='cat' src='mylog.log'></iframe>
- </div>
- <script>
- iframe = document.getElementById('cat');
- iframe.onload = function () { iframe.contentWindow.scrollTo(0,iframe.contentWindow.document.body.scrollHeight); };
- window.onload = function () { console.log(iframe.contentWindow.document.body.scrollHeight) };
- //window.scrollTo(0,document.body.scrollHeight)
- //setInterval(function(){ document.getElementById("divy").innerHTML="<iframe src='test.html'></iframe>"; }, 3000);
- </script>
- <body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement