Scratchpad
A space where I share what I'm learning, technical or otherwise.
screenX, clientX, pageX: Same Click, Three Different Numbers
A practical, from-scratch look at screenX/Y, clientX/Y, pageX/Y, and offsetX/Y. What each one actually measures, why they disagree, and which one you actually need.
JavaScriptdombrowser-apisweb-developmentbeginners
Estimated Reading Time: 6 minutes
Published On: Thu Aug 06 2026