Attaching to OnClick after its run

Attaching to OnClick after its run

I am using a third party calendar and have attached an action to the onclick events of its buttons.  I need my code to trigger after the main onclick has run - how do I achieve this?