Initializing help system before first use

vdl-event

Attach one or more event handlers to an element.

Example

<script>
  function clickHandler() {
    // click handler code
  }
</script>

<button vdl-event="click:clickHandler">Click</button>

Attributes

vdl-event A string containing references to one or more event and event handlers, an event handler being a global function defined inside a script tag. Specified as follows: "eventName: handlerReference". Several comma-separated event/event handlers can be specified. required