Device
The device object gives you means to know what device and you are running on and what version they are. These are properties not methods so there are no arguments passed.
- iphone
- android
- blackberry
Platform
Syntax
device.platform
Example
document.getElementById("platform").innerHTML = device.platform;
- iphone
- android
- blackberry
Version
Syntax
device.version
Example
document.getElementById("version").innerHTML = device.version;
- iphone
- android
- blackberry
Name
Syntax
device.name
Example
document.getElementById("devicename").innerHTML = device.name;
- iphone
- android
- blackberry
UUID
Syntax
device.uuid
Example
document.getElementById("uuid").innerHTML = device.uuid;