Notes (2): Alert (), confirm (), and prompt ()
Alert () DisplayS a Message to the user. Return value: undefined, that is, there is no return value .confirm () Asks the user to click AN OR Cancel Button to CONFIRMOR CANCEL An Operation. Return Value: True, User Choose "OK "; false, users choose" cancel ".prompt () askS the user to enter a string. Return Value: User Enter Value. Note: confirm () and prompt () Methods Block - That Is, Those Methods Do Not Return Until the user dismisses the dialog boxes they display.alert () method also blocks and waits for the user to dismiss the dialog box. In some browsers, however (notably Netscape 3 and 4 on Unix platforms), alert () does not block.3 The example of a dialog is as follows: