web api instance method
ScreenOrientation: unlock() method
The unlock() method of the ScreenOrientation interface unlocks the orientation of the containing document, effectively locking it to the default screen orientation.
Syntax
unlock()
Parameters
None.
Return value
None (undefined).
Exceptions
InvalidStateErrorDOMException- : Thrown if the document is not fully active.
SecurityErrorDOMException- : Thrown if the document’s visibility state is hidden or if the document is forbidden to use the feature (for example, by omitting the keyword
allow-orientation-lockof thesandboxattribute of theiframeelement).
- : Thrown if the document’s visibility state is hidden or if the document is forbidden to use the feature (for example, by omitting the keyword
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.