How can i call yes/no popup when saving a contact

I'm using the Community Edition of Sugarcrm.

I want to present a yes/no popup, when the user push "Save" button on creating a new contact.

For doing that i need to somehow call a javascript function/file when the button "Save" is pushed on the editview.

if the user push "yes" continue with the save. if user push "no" cancel the save.

Can i connect between the "Save" button in the editview and a javascript code?

also i need a way to cancel the save of the contact... can this be possible to implement?

Hope there are still sugarcrm community developers out there

thank you