injectableContent.html 523 B

12345678910111213141516171819202122
  1. <html>
  2. <head>
  3. <title>random numbers</title>
  4. <script>
  5. function display() {
  6. document.getElementById('numbers').textContent = numbers.join(' ');
  7. }
  8. </script>
  9. </head>
  10. <body onload="display()">
  11. <p>Some random numbers between 0 and 100:</p>
  12. <!-- Placeholder for the list of random numbers -->
  13. <p id="numbers"></p>
  14. <script>
  15. numbers = [];
  16. while (numbers.length < 100) {
  17. numbers.push(Math.round(Math.random() * 100));
  18. }
  19. </script>
  20. </body>
  21. </html>