Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at


These constants define which coordinate system a point is located in.
Gecko 1.9
Inherits from: nsISupports Last changed in Gecko 1.9 (Firefox 3)

Prior to Gecko 1.9, these constants were implemented in nsIAccessibleText.


Constant Value Description
COORDTYPE_SCREEN_RELATIVE 0x00 The coordinates are relative to the screen.
COORDTYPE_WINDOW_RELATIVE 0x01 The coordinates are relative to the window.
COORDTYPE_PARENT_RELATIVE 0x02 The coordinates are relative to the upper left corner of the bounding box of the immediate parent.

Document Tags and Contributors

 Contributors to this page: Sheppy, trevorh
 Last updated by: Sheppy,