Create a message Confirmation before of the creation a record with a button in a form

i want that when a user press a button in a form this generate a message confirmation of creation of the record. Any idea how to do this?