alert method
window.alert()
instructs the browser to display a dialog with an
optional message, and to wait until the user dismisses the dialog.
Under some conditions — for example, when the user switches tabs — the browser may not actually display a dialog, or may not wait for the user to dismiss the dialog.
Implementation
external void alert([String message]);