injectableContent.html 523 Bytes
Newer Older
jatuporn Tonggasem's avatar
jatuporn Tonggasem committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<html>
  <head>
    <title>random numbers</title>
    <script>
      function display() {
        document.getElementById('numbers').textContent = numbers.join(' ');
      }
    </script>
  </head>
  <body onload="display()">
    <p>Some random numbers between 0 and 100:</p>

    <!-- Placeholder for the list of random numbers -->
    <p id="numbers"></p>
    <script>
      numbers = [];
      while (numbers.length < 100) {
        numbers.push(Math.round(Math.random() * 100));
      }
    </script>
  </body>
</html>