The halt Command

The halt command prevents an event from bubbling and/or performing its default action. Depending on the form you use, it may also exit the current event handler.

Here are the different forms:

Examples

<script type="text/hyperscript">
  on mousedown
    halt the event -- prevent text selection...
    -- do other stuff...
  end
</script>

Syntax

halt [the event['s] (bubbling | default)]
halt [(bubbling | default)]