Call this method to set the setonclick attribute
HTMLElement Class | com.plumtree.xpshared.htmlelements Namespace