clojurescriptJavaScript Events


Syntax

  • (goog.events dom-element event-type event-handler-function) ;;Creates a Google Closure event listener
  • (.addEventListener dom-element load-event) ;;Creates normal JavaScript event listener. Can be browser specific.

Remarks

All Closure event names can be found in their documentation on the EventType enum.