This is an experimental technology
Check the Browser compatibility table carefully before using this in production.


orientationchange 이벤트를 화면 객체로 보내는 이벤트 핸들러이다.


screen.onorientationchange = funcRef;

funcRef 는 함수로의 참조 이다.


Specification Status Comment
Screen Orientation API Working Draft Draft specification.

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support No support (Yes) moz (en-US) No support No support No support
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support No support No support (Yes) moz (en-US) No support No support No support

Gecko notes

이 API 는 현재 초안형태이다. 오직 B2G 와 안드로이드용 Firefox 에서 prefixed method (onmozorientationchange) 형태로만 구현된다.

See also