Hexret

Web Security · Client-side

Event handler

Also known as: DOM event handler

Code invoked by an event such as a click, focus, or load. An HTML attribute such as onerror contains executable code. The word onerror in ordinary text does not create a handler. The event must also occur for execution.

Where you practice it

Related terms