oncommand
<button label="Click me" oncommand="alert('Hi')"/>
<button label="Click me" oncommand="doSomeProcessing(event.target)"/>And here is the definition of the function:
function doSomeProcessing(source) { alert("source: " + source); return true; }
elementcommand