register handler
Last updated
Was this helpful?
Last updated
Was this helpful?
โฉ โฉ โฉ โฉ register
register an event (function) handler๏ผ
register an event ๏ผ
Donโt use setAttribute
to assign handlers. Attributes are always strings, function becomes a string
For some events, handlers only work with addEventListener.
registering with
javascript.info โฉ
โฉ