I\'m trying to get the screen coordinates (that is, relative to the top left corner of the screen) of an element in a browser window. It\'s easy to get the size and position
I don't think this is possible.
The element coordinates are relative to the top left corner of the rendered page.
The window coordinates are relative to the screen.
There is, to my knowledge, nothing that relates the top left corner of the rendered page to the top left corner of the window. So there's no way to account for borders, scrollbars, chrome, etc. So I think you're sunk on this one.