I am completely new to Javascript. But I learned a little about Activescript. I was taught to use addEventListener to handle events.
But when I come to JavaScript, although addEventListener is an option, it seems like this is a small way to use addEventListener. Instead, people use onChange ().
Besides syntactically, are there behavioral differences?
I was also taught to always use removeEventListener. This does not seem very necessary. If I use onChange, is there no need for removeEventListener code?
thank
source
share