Answer the question
In order to leave comments, you need to log in
How does .offset() work in JQuery?
I study the positioning of elements on the page.
The question arose : how to find the coordinates of an element relative to the beginning of the document in JavaScript ?
JQuery has the .offset() function, for JS all the articles that I googled are quite different in approaches and old ones.
I would like to understand the most efficient cross-browser IE8+ algorithm.
Answer the question
In order to leave comments, you need to log in
What prevents to open the source and see?
https://github.com/jquery/jquery/blob/master/src/o...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question