Screen Orientation API
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.
* Some parts of this feature may have varying levels of support.
The Screen Orientation API provides information about the orientation of the screen.
Interfaces
Specifications
| Specification |
|---|
| Screen Orientation # screenorientation-interface |
Browser compatibility
| desktop | mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
ScreenOrientation
|
|
|
|
|
|
|
|
|
|
|
|
|
angle
|
|
|
|
|
|
|
|
|
|
|
|
|
change event
|
|
|
|
|
|
|
|
|
|
|
|
|
lock
|
|
|
|
|
|
|
|
|
|
|
|
|
type
|
|
|
|
|
|
|
|
|
|
|
|
|
unlock
|
|
|
|
|
|
|
|
|
|
|
|
|
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
- No support
- No support
- Has more compatibility info.