JavaScript Editor js editor     Web development 

Main Page

Specifies the display orientation for an application running on a Tablet PC.

_SCREEN.DisplayOrientation [= nValue]

Return Value


The settings for the DisplayOrientation property are:

Setting Description


Display is in Upright Landscape mode.


Display is in Upright Portrait mode.


Display is in Inverted Landscape mode.


Display is in Inverted Portrait mode.

If you omit the nValue parameter, DisplayOrientation returns a value indicating the current display orientation.


The DisplayOrientation property is read-write. If you change the DisplayOrientation property value, the Tablet PC's display orientation is rotated as it would from the Tablet PC’s control panel.

You can detect a Tablet PC screen rotation event by using the BINDEVENT( ) Function with the DisplayOrientation property.

See Also

JavaScript Editor js editor     Web development