There are two basic methods for bringing up dialogs using javascript.
alert(message) -- Display message and OK button.
confirm(message) -- Display message and OK and Cancel buttons.
Results of dialogs: