3 ms·
>Consider for example preventing event propagation in JS. This varies by browser so you might write: > > if (event.preventDefault) FWIW, that sort of field e
by gpderetta 8y ago
>Consider for example preventing event propagation in JS. This varies by browser so you might write:
>
> if (event.preventDefault)
FWIW, that sort of field existence check (and much more) can be done fully at compile time in many mainstream programming languages.