Can someone explain what is the proper way to make certain actions call functions in javascript? Should I use event handlers like onclick="callFunction();"
? Or should I use an event listener? If yes, how do they work?
Asked
Active
Viewed 2,400 times
3

Aillyn
- 23,354
- 24
- 59
- 84
-
looks like a dupe of http://stackoverflow.com/questions/2215379/javascript-event-listeners-vs-event-handlers – Scott Evernden Aug 27 '10 at 01:49
-
2@Scott I read that question before posting this. I still didn't get it. – Aillyn Aug 27 '10 at 01:56
-
Read this: http://www.quirksmode.org/js/events_tradmod.html Then read this: http://www.quirksmode.org/js/events_advanced.html – karim79 Aug 27 '10 at 01:51