web api instance property
Window: orientation property
Returns the orientation in degrees (in 90-degree increments) of the viewport relative to the device’s natural orientation.
Its only possible values are -90, 0, 90, and 180. Positive values are counterclockwise; negative values are clockwise.
This property is deprecated. Use the orientation property instead, available on the screen property.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.