This object can display alert messages similar to JavaScript alert windows.
It creates div elements to display alert messages that appear centered in the current browser window.
This object also creates a div element that covers the whole browser window so the alert element is modal, i.e. the user can only access to the rest of the page when the alert window is closed.
The alert window can have custom buttons. Given callback functions can be called when the user clicks on each of the alert window buttons.
The title and the icon of the alert window are also configurable. |