I am using Onload() to know when an image has been loaded. It has worked for years and still is working on my computer and can be found in the w3schools reference http://www.w3schools.com/jsref/event_img_onload.asp
I ran one of my few pages that have that through the validator and it does not like me using onload with image tags.
<a href='http://www.adobe.com/go/getflashplayer'>
<img src='./player/embed/get_flash_player.gif' alt='Get Adobe Flash player' onload="triggercounter('test','Flash Failed') "/>
</a>
What is the preferred way to trigger an event when an image has loaded?