Given a screenX
and screenY
(coordinates on the screen), I want to convert to a clientX
and clientY
(coordinates on a document) in relation to a document
/document.body
in a given Window
.
What I’m struggling with is how to account for the window chrome, titlebar, location bar, … as I can’t see any properties that can help.
Any ideas?
12