Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

orientationchange

orientationchange 이벤트는 장치의 방향이 바뀔 때 호출 된다.

General info

Specification
Screen Orientation
Interface
Event
Bubbles
No
Cancelable
No
Target
Screen
Default Action
None

Properties

Property Type Description
target Read only EventTarget The event target (the topmost target in the DOM tree).
type Read only DOMString The type of event.
bubbles Read only boolean Does the event normally bubble?
cancelable Read only boolean Is it possible to cancel the event?

Example

// Note that "orientationchange" and screen.orientation are unprefixed in the following
// code although this API is still vendor-prefixed browsers implementing it.
screen.addEventListener("orientationchange", function() {
    alert("the orientation of the device is now " + screen.orientation);
});

문서 태그 및 공헌자

 이 페이지의 공헌자: junho85
 최종 변경: junho85,