When using PhoneGap's application for webOS, I attempted to display an alert in various ways:
// 1.
alert('Mobile number must be 10 digits');
// 2.
navigator.notification.alert("alert message!",
function(){}, //callback
'Alert Title',
"ok"
);
// 3.
navigator.notification.confirm("alert message!",
function(){}, //callback
'Alert Title',
"ok"
);
// 4.
Notification.prototype.confirm('alert message', function(){}, 'Alert Title', 'ok');
PhoneGap version 2.1.0
Why isn't it working?