Simulate a click on toolbar button

Hi,
All is in the subject, I would like to know if it’s possible to simulate, in javascript, the click on a toolbar button ?

Thanks

Hi
Here is a sample for you in attachment
toolbar.rar (305 KB)