alert Method

This method will display a modal alert box

intel.xdk.notification.alert(message,title,buttontext);

Description:

This method will display a modal alert box. The message, alert box title, and the text on the confirm button are all defined by the parameters passed to this method.

Platforms:

Parameters:

  • message: The message to show in the alert box
  • title: The title to put across the top of the alert bo.
  • buttontext: The text to put on the button that dismisses the alert box

Example:


 intel.xdk.notification.alert("Hammertime!","STOP","Can\'t Touch This");           
            
For more complete information about compiler optimizations, see our Optimization Notice.