How can I add an event listener (addEventListener(),attachEvent()) that also accepts a parameter?
The parameter is passed as the element's custom attribute like:
<img src="icon.gif" alt="Test button" command="test" />
<img src="icon2.gif" alt="Test button2" command="write" />