The following code allows you to handle an event for all elements on a web page. You can then target code based upon each elements id or some other attribute