counter.html 621 B

12345678910111213141516171819202122232425
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <script>
  5. document.addEventListener("DOMContentLoaded", function ()
  6. {
  7. var number = window.location.search;
  8. if ( number == '') number = 0;
  9. else number = number.substring(1,);
  10. number = parseInt(number) + 1;
  11. document.getElementById('count').innerHTML = number;
  12. window.location.search = '?' + number;
  13. }
  14. )
  15. </script>
  16. </head>
  17. <body>
  18. <br>This page reloads itself as fast as it can to test the server.</br>
  19. <br>It is meant as a stress test to see when and if the server fails.</br>
  20. <h1 id="count" class="countclass">
  21. </h1>
  22. </body>
  23. </html>