This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

window.screen.unlockOrientation

Deprecated

Avoid using this feature in new projects. This feature may be a candidate for removal from web standards or browsers.

Screen.unlockOrientation() 함수는 이전의 page나 앱을 통해 지정한 화면 고정 값들을 모두 제거 한다.

참고 : 이 함수는 설치된 웹앱 또는 full-screen mode 의 웹 페이지들에서 동작한다..

Syntax

js
var unlocked = window.screen.unlockOrientation();

Return value

성공적으로 unlocked 된 경우 true 를 반환하며, 만약 방향이 unlock 될 수 없다면 false 를 반환한다.

Example

js
if (window.screen.unlockOrientation()) {
  // orientation was unlocked
} else {
  // orientation unlock failed
}

명세서

This feature does not appear to be defined in any specification.

브라우저 호환성

See also