This post is a part 17 of Intel XDK Complete Tutorial post series.
A Intel XDK alert box is a popup box that is used to inform user about something. Alert box has only one button and when its clicked the alert box closes. There is no event fired when the alert box is closed by the user.
With just one line of code you can display alert box in Intel XDK
//Parameter:
//1. Message to be shown in the box
//2. Title of alert box
//3. Button text
intel.xdk.notification.alert("This is the message", "Title", "Button Text");
//1. Message to be shown in the box
//2. Title of alert box
//3. Button text
intel.xdk.notification.alert("This is the message", "Title", "Button Text");
When the button is clicked the alert box is closed.