alert

fnvoid alert(string message)

Shows an alert dialog with an OK button.

This displays a modal dialog with an alert/warning icon and the specified message. The user must click OK to dismiss.

Parameters

messageThe message to display Example:
alert("File not found!");