January 2018
Intermediate to advanced
678 pages
20h 16m
English
alert and confirm MethodsThe window object’s alert, confirm, and prompt methods generate dialog boxes. A dialog box (or dialog for short) is a window that performs one simple task. For example, this dialog simply displays a message:
With a standard window, the web programmer has quite a bit of control in terms of customization. The programmer determines the number of controls and the layout of those controls. On the other hand, dialog boxes are pretty plain, and the programmer can’t do much about that plainness. Note the plainness in the preceding dialog—there’s a message, an OK button, and a close-out X button in the ...
Read now
Unlock full access