onButtonClick event for Popup

As there are many situations when we attach form to popup and there is a button to save/update changes done on form, how do we handle that event?

You can handle that event in your form.
popUp is just a container for your form.