Gladiator Components >> Alert Component >> Alert API
Try It!
The Gladiator Alert component implements a modal alert window.
As an example, the following two lines of code can be used to
replace a call to Javascript's "alert()" function:
var myAlert = new gAlert("Alert","alert");
myAlert.alert("This is a Gladiator modal Alert window. Click OK to continue.");
In some cases, such as Firefox on X Windows platforms, a Gladiator Alert
window will display more quickly than Javascript's "alert()"
because the overhead of creating an additional X system window is not present.
Another nice feature is that the Gladiator Alert component uses a visible "screen" which provides the user with a visual cue that the rest of the application is unavailable while the Alert window is open.