---
title: ScreenOrientation.unlock()
slug: Web/API/ScreenOrientation/unlock
tags:
  - API
  - Orientation
  - Property
  - Reference
  - Screen Orientation API
  - ScreenOrientation
  - Unlock
browser-compat: api.ScreenOrientation.unlock
---
{{APIRef("Screen Orientation")}}{{SeeCompatTable}}

The **`unlock()`** property of the
{{domxref("ScreenOrientation")}} interface unlocks the orientation of the containing
document from its default orientation.

## Syntax

```js
screen.orientation.unlock()
```

### Parameters

None.

### Return value

Void.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
