fires when the user clicks the left mouse button on a button or a select button items
myToolbar.attachEvent("onClick", function(id){ //your code here });