JavaScript

{dialog.object}getOrientation Method

Syntax

var result = {dialog.object}.getOrientation();

Returns

resultstring

Returns the device's orientation. Will either be 'landscape' or 'portrait'.

Description

Returns the device's orientation.

Example

var o = {dialog.object}.getOrientation();
alert(o);