<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>My Device</title>
<script type="text/javascript" charset="UTF-8" src="cordova.js"></script>
<script type="text/javascript" charset="UTF-8">
function onLoad() {
document.addEventListener("deviceready", onDeviceReady, false);
}
function onDeviceReady() {
var myDiv = document.getElementById('props');
myDiv.innerHTML = 'Device Name: ' + device.name + '<br />' +
'Device PhoneGap: ' + device.phonegap + '<br />' +
'Device Platform: ' + device.platform + '<br />' +
'Device UUID: ' + device.uuid + '<br />' +
'Device Version: ' + device.version + '<br />'
}
</script>
</head>
<body onload="onLoad()">
<p id="props"> Loading device properties...</p>
</body>
</html>