Event listeners demo

Open up console to see logs. View page source for example code









Click example on multiple li

Hover example on multiple li

Hover `{ once: true }` example on multiple li

Click `{ once: true }` example on multiple li

Click `once` EVER via function on multiple li

Comma separated events - addListener('selector', 'click, mouseover', cb)

Space separated events - addListener('selector', 'click mouseover', cb)

Array syntax events - addListener('selector', ['click', 'mouseover'], cb)


Span one Span two Span class one Span class two Span class two

Span three Span four

Throw error

Event types

All browser events are supported. Below are just some examples