79545605

Date: 2025-03-31 06:30:24
Score: 1
Natty:
Report link

You can do this by using the onscroll event:

<html>
<body id="body">

<script>

window.onscroll=function(ev){

  if((window.innerHeight+window.pageYOffset)>=body.offsetHeight){

    body.innerHTML+='<div>This gets added</div>';

  }

};

</script>

</body>
</html>

Sample

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: gheos.com