To see a basic demo of various event handlers take a look here. This demo has three different index.html pages. Each of them attach event handlers to the different DOM elements in different ways.
index.html