The PhoneGap Notification API provides methods that allow an application to provide feedback to a user visually (through pop-up alerts) and through tactile or audible feedback. The methods supported by this API are as follows:
Visual Alerts (Alert and Confirm)
alert method, which works just fine in PhoneGap applications, takes a single parameter, which is the text of the message displayed on the screen, as shown in the following example:
alert("You clicked the Click Me button.");
This code generates the pop-up dialog ...