At my work, whenever we have a link to delete records, we always have a simple Javascript confirm dialog pop-up.† The confirm dialog just does the standard, ďAre you sure you wish to delete this record?Ē with an OK and Cancel button.† If the user clicks cancel, the record is not deleted, if they click OK, the record will be deleted.

If youíve done some Facebook development, you will notice quickly that the alert() and confirm() functions do not work.† Iíve found this slightly annoying, so Iíve written a very simple Javascript function that letís me use the nifty dialogs that Facebook provides us.