Screen orientation lock
Limited availability
The screen.orientation.lock()
method prevents changes to the screen orientation, typically in fullscreen applications such as games. For example, while locked, rotating a phone to the side won't change the screen orientation from landscape to portrait.
Specifications
Browser support
- Chrome ❌
- Chrome Android 38 Released on 2014-10-08
- Edge ❌
- Firefox ❌
- Firefox for Android ❌
- Safari ❌
- Safari on iOS ❌
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist