← Back to Examples

Event Handling Demo

1. Click Events

Click me!
Click count: 0

2. Mouse Events

Move mouse here
Mouse position will appear here...

3. Keyboard Events

Click below and press any key:

Press a key...
Key info will appear here...

4. Form Events

Form events will appear here...

5. Event Delegation

Click any button below (listener is on the container, not individual buttons):

Click a button...

← Back to Examples