Back

Tutorial

Becuase event handlers are 'async' we also cant access ev.target, thats why it is passed as 2nd arg. but qwik can prevent default ahead of time for us :

click me too
...

all code is downloaded async, so e.g. we cant catch an event and prevent it. with sync we can tell qwik to download code sync & run it. but sync has quite a few gotchas and this does not prevent the event ...

click me!