I know that we can get width and height using clientWidth and clientHeight, however how do I figure out the top left x and top left y position of an element?
I know that we can get width and height using clientWidth and clientHeight, however
Share
Retrieve the position (X,Y) of an HTML element
Find X/Y of an HTML element with JavaScript
These two links should be helpful.