How to find coordinates of an element relative to browser window
I want coordinates of an element relative to the browser window. So if an element开发者_运维百科 is at top-left corner of browser can I get it's coordinates as x=0, y=0. How to achieve this ?
I think you could use this script or use jquery offset()
精彩评论