Newer Version Available

This content describes an older version of this product. View Latest

Events

Although you can attach an onclick event to any type of element, for accessibility, consider only applying this event to elements that are actionable in HTML by default, such as <a>, <button>, or <input> tags in component markup. They should not be used on <div> and <span> tags for accessibility. For a non-actionable element, wrap <a> around it and add onclick.
1swfobject.registerObject("clippy.codeblock-0", "9");<a onclick="{!c.doSomething}">{!v.body}</a>