지원이 중단되었습니다: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

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

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


var unlocked = window.screen.unlockOrientation();

Return value

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


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


No specification found

No specification data found for api.Screen.unlockOrientation.
Check for problems with this page or contribute a missing spec_url to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.

브라우저 호환성

BCD tables only load in the browser

See also