beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
Ops.Html.Event.PreventDefault

PreventDefault
op id:f5eaa284-2c01-4f1d-ab12-7f392bbbcadf
Prevents the default on a JavaScript event

summary (oneliner)

See w3schools: preventDefault()

Some examples when you might want to prevent the default on an event:

  • Clicking on a «Submit» button, prevent it from submitting a form
  • Clicking on a link, prevent the link from following the URL

doc

issues

youtube id

collections

related ops

Inputs

Execute (Function)

Only execute once per Event


Event In (Object)

The event on which you want to prevent the default


Outputs

Next (Function)

Triggers after


Event Out (Object)

Same as Event In


Credits

Caught a mistake or want to contribute to the documentation?


Edit this documentcancel save

Examples using PreventDefault

Public Patches using PreventDefault