Navigator

From NSB App Studio
Revision as of 20:49, 2 September 2012 by Admin (talk | contribs) (Created page with "NSB/App Studio 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 t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

NSB/App Studio 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.

window object members

onLine Returns true or false if the device is currently on line.
standalone Returns whether the app is running standalone or within a browser. If standalone, there is no browser menu bar at the top.
vendor The vendor string for the browser: i.e., Apple, Google.
appCodeName Returns the code name of the browser
appName Returns the name of the browser
appVersion Returns the version information of the browser
platform Returns for which platform the browser is compiled
userAgent Returns the user-agent header sent by the browser to the server. Here is a list of codes for<a href="http://www.zytrax.com/tech/web/mobile_ids.html">various devices</a>.
app.exitApp() Exits the app to the Home screen. Android only.