Originally Posted by Apostropartheid
I was hoping the OP would look into alert() and its related functions to arrive at prompt() and confirm().
Though a modal method is preferred nowadays, it does not appear to be what was in mind.
alert () confirm() and prompt() ALL display extra options that you wouldn't want in a live web page - for example:
Do you really want visitors to your site seeing those checkboxes - that's why you should always substitute a lightbox script for the built in dialogs for live web pages.
Also a lightbox is the only way to do yes/no.
Helping others to solve their computer problem at http://www.felgall.com/