code: static void captureEvent(final Element elem, String eventName, final EventHandler handler) {
      // register regular event handler on the element
      HtmlPlatform.captureEvent(elem, eventName, handler);
    }
docs: Capture events that occur on the target element only.