Remove event on list page

How I will detect the deletion event on the list page of any form for example sale order page. When user select sale order for the deletion the new button convert into delete button i want to detect delete button press event . how please any reference or anybody can explain. prefer in script if possible .
thanks .


you can check the on_trash event in hooks.

Thanks, Makarand