Title here
Summary here
To move elements around we should be familiar with coordinates.
Most JavaScript methods deal with one of two coordinate systems:
Relative to the window – similar to position:fixed
, calculated from the window top/left edge.
clientX/clientY
.Relative to the document – similar to position:absolute
in the document root, calculated from the document top/left edge.
pageX/pageY
.