lightning button onlick code example
Example: salesforce lightning button
<lightning:button variant="Brand" label="Save" title="Save" onclick="{! c.save }" />
<lightning:button variant="Brand" label="Save" title="Save" onclick="{! c.save }" />