I know there is the javascript getBoundingClientRect()
to retrieve the position of an element on a web page, but i need to write a script (preferably in php) that take a list of url and retrieves the position of a specific element on every page (an <a href="specificurl">
).
The position could be expressed in px, or it could be "it's in header", "it's in footer", "it's in sidebar" (that way it's better for my purpose).
There is a method to do it in "simple" way?