Deprecated
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나 앱을 통해 지정한 화면 고정 값들을 모두 제거 한다.
Note: 이 함수는 설치된 웹앱 또는 full-screen mode 의 웹 페이지들에서 동작한다..
Syntax
var unlocked = window.screen.unlockOrientation();
Return value
성공적으로 unlocked 된 경우 true
를 반환하며, 만약 방향이 unlock 될 수 없다면 false
를 반환한다.
Example
if (window.screen.unlockOrientation()) { // orientation was unlocked } else { // orientation unlock failed }
Specifications
Specification | Status | Comment |
---|---|---|
Screen Orientation API The definition of 'Screen Orientation' in that specification. |
Working Draft | Draft specification |
Browser compatibility
BCD tables only load in the browser