In Phonegaps application for webOS I try to show alert in several ways:
// 1.
alert('Mobile number has to be of 10 digits');
// 2.
navigator.notification.alert("alert text!",
function(){}, //callback
'alert Title',
"ok"
);
// 3.
navigator.notification.confirm("alert text!",
function(){}, //callback
'alert Title',
"ok"
);
// 4.
Notification.prototype.confirm('alert text', function(){}, 'alert Title', 'ok');
Phonegaps version 2.1.0
Why it don't?