I am making a RTS game in Javascript and HTML. Sounds ambitious I know but I\'m not shooting for the stars here. Just a little something to keep me entertained.
I
You may also use:
element.getBoundingClientRect()
it returns DOMRect object (with some useful coordinates).