halt CommandThe 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:
halt -- halts both bubbling and default, then exits the event handler (like exit)halt the event -- halts both bubbling and default, but continues execution of the handlerhalt the event's bubbling -- halts only bubbling, continues executionhalt the event's default -- halts only the default action, continues executionhalt bubbling -- halts only bubbling, then exits the handlerhalt default -- halts only the default action, then exits the handler<script type="text/hyperscript">
on mousedown
halt the event -- prevent text selection...
-- do other stuff...
end
</script>
halt [the event['s] (bubbling | default)]
halt [(bubbling | default)]