The visual cues represents:
Screen → the full screen of the monitor (screenX/Y
)
Position will always be relative to the physical screen's viewport.
Client → the client viewport of the browser (clientX/Y
)
If you click in the left top corner the value will always be (0,0) independent on scroll position.
Document → the complete document/page (pageX/Y
)
Note that pageX
/pageY
on the UIEvent
object are not standardized.
All values are in pixels.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…