probe.html 472 B

123456
  1. <!doctype html><html><head><meta charset="utf-8"><style>body{margin:0;font:16px sans-serif}#far{margin-top:3000px}button{margin:40px}</style></head><body>
  2. <button id="hidden">Add far away</button><button id="shown">Add here</button><div id="near"></div><div id="far"></div>
  3. <script>
  4. hidden.onclick=()=>{const p=document.createElement('p');p.textContent='Added far below';document.body.appendChild(p)};
  5. shown.onclick=()=>{near.textContent='Saved'};
  6. </script></body></html>