A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/unlock below:

ScreenOrientation: unlock() method - Web APIs

ScreenOrientation: unlock() method

Limited availability

The unlock() method of the ScreenOrientation interface unlocks the orientation of the containing document from its default orientation.

Syntax Parameters

None.

Return value

None (undefined).

Exceptions

The promise may be rejected with the following exceptions:

InvalidStateError DOMException

Thrown if the document is not fully active.

SecurityError DOMException

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-lock of the sandbox attribute of the iframe element).

AbortError DOMException

Thrown if there is any other lock() method invoking.

Specifications Browser compatibility

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4