Screen Orientation API
Summary
The Screen Orientation API provides the ability to read the screen orientation state, to be informed when this state changes, and to be able to lock the screen orientation to a specific state.
See also
External resources
http://www.w3.org/TR/screen-orientation/