CNET JS Code Documentation
Function: errorAlert
Makes a little alert box with a close button.
Author: Aaron Newton
Syntax
errorAlert(messageHeader, message[, baseHref]);
Arguments
- messageHeader - (string) the caption for the window
- message - (string) the error message
- baseHref - (string) the location of the icon_problems_sm.gif file; defaults to cnet's domain.
Example
errorAlert("Woops!", "Oh nos! I've got five Internets open!");
Returns
- (object) an instance of StickyWin.Modal