api.ScreenOrientation.lock

Spec

MDN URL

Status

On the standards track: Yes

Is Experimental: No

Is Deprecated: No

Browser Support

In Chrome version 38 on 2014-10-07 Note: Always throws NotSupportedError.

In Chrome Android version 38 on 2014-10-08

In Edge version 79 on 2020-01-15 Note: Always throws NotSupportedError.

In Firefox version 144 on 2025-10-14 Note: Always throws NotSupportedError.

In Firefox for Android version 144 on 2025-10-14 Note: The API exists but returns NS_ERROR_UNEXPECTED.

Not in Internet Explorer

In Quest Browser version 5.0 on undefined

In Opera version 25 on 2014-10-15 Note: Always throws NotSupportedError.

In Opera Android version 25 on 2014-10-16

Not in Safari

Not in Safari on iOS

In Samsung Internet version 3.0 on 2015-04-10

In WebView Android version 38 on 2014-10-08

Not in WebView on iOS