ScreenOrientation: type property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2023.
Thetype read-only property of theScreenOrientation interface returns the document's current orientationtype, one ofportrait-primary,portrait-secondary,landscape-primary, orlandscape-secondary.
In this article
Value
AString.
Specifications
| Specification |
|---|
| Screen Orientation> # dom-screenorientation-type> |