Screen object

From NSB App Studio
Jump to navigation Jump to search

AppStudio programs run within a special version of a web browser. As a result, they can inherit a lot of the properties of the environment they run in. You can access these properties from within your app.

It is not a complete list: there are additional items in the full HTML documentation. In addition, some browsers may have additional members not shown here.

screen object members

orientation Returns the current screen orientation
orientation.lock(val) val can be "landscape" or "portrait". Android only.


If InStr(navigator.userAgent, "Chrome") Then
End If