Guest User

Untitled

a guest
Jan 23rd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. <html>
  2. <title>test</title>
  3. <script type="text/javascript">
  4. var i = 0;
  5. function writeIt() {
  6. i++;
  7. var start = Date.now();
  8. var element = document.getElementById("test");
  9. if (element) {
  10. while (Date.now() < start + 15000) {
  11. element.innerHTML = i;
  12. i++;
  13. }
  14. }
  15. }
  16. function startIt() {
  17. writeIt();
  18. //setTimeout(writeIt, 1000);
  19. }
  20. //window.onload=startIt();
  21. </script>
  22. <body>
  23.  
  24. <div id="test"></div>
  25. <script>
  26. startIt();
  27. </script>
  28. </body>
  29. </html>
  30.  
  31. WebBrowser1.Navigate('http://myurl.com/test.html');
Add Comment
Please, Sign In to add comment