Easy Tutorial
❮ Jquerymobile Filters Home ❯

jQuery Mobile orientationchange Event

jQuery Mobile Events

Example

Display some text information when the user rotates the mobile device:


Definition and Usage

The orientationchange event is triggered when the user rotates the device horizontally or vertically (i.e., the orientation changes).

Note: To see the effect of the orientationchange event, users must use a mobile device or a mobile emulator to view the examples on this site.


Syntax

Parameter Description
function(event) Required. Specifies the function to execute after the orientationchange event is triggered. To determine which direction the device is rotated, you can access the orientation property, which can have values of "portrait" or "landscape". Portrait = Device is rotated in the portrait position<br> Landscape = Device is rotated in the landscape position

More Examples

Event Object

Window Object


jQuery Mobile Events

❮ Jquerymobile Filters Home ❯