code: public String getOnClick()
      {
          AbstractHtmlState tsh = getState();
          return tsh.getAttribute(AbstractHtmlState.ATTR_JAVASCRIPT, ONCLICK);
      }
docs: Gets the onClick javascript event.
  @return the onClick event.