elementLoad.html 270 B

123456789101112131415161718
  1. <html>
  2. <head>
  3. <title>a - test</title>
  4. </head>
  5. <body>
  6. <h1>page a</h1>
  7. <div>a</div>
  8. </body>
  9. <script>
  10. setTimeout(() => {
  11. let el = document.createElement('div');
  12. el.dataset.name = 'el';
  13. document.body.appendChild(el)
  14. }, 500)
  15. </script>
  16. </html>