title: Event listener vs event handler
body: <p>Can someone explain what is the proper way to make certain actions call functions in javascript? Should I use event handlers like <code>onclick="callFunction();"</code>? Or should I use an  event listener? If yes, how do they work?</p>