Let's say we are knowing the offset top of a specific element and we want to get that element which is situated at that point, so is there any way to get it?.
For Example, we have DOM element having offset top = 6000, and we want to find that element situated at that offset top point.
Example:
<ul>
<li>first list</li>
<li>second list</li>
<li>third list</li>
</ul>
<h3>Skills:</h3>
<p>This are my skills. xyz, abc, pqr</p>
Now here, let's say offsetTop of <p>
element is 10 and we want that whole element means like <p>This are my skills. xyz, abc, pqr</p>
, just by using it's offsetTop.