The unlock()
property of the ScreenOrientation
interface unlocks the orientation of the containing document from its default orientation.
The unlock()
property of the ScreenOrientation
interface unlocks the orientation of the containing document from its default orientation.
js
unlock()
None.
None (undefined
).
Specification |
---|
Screen Orientation # dom-screenorientation-unlock |
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
unlock |
38Always throwsNotSupportedError . |
79Always throwsNotSupportedError . |
43Always throwsNotSupportedError . |
No | 25Always throwsNotSupportedError . |
No | 38 | 38 | 43 | 25 | No | 3.0 |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/unlock