Writing of javascript codes to delete contacts

hi there, does anyone of you knows how to write javascript codes to prompt user when deleting of records from the database? many thanks in advance :slight_smile: