Thanks for the reply. Two things, that won't work as the onload set in the image tag will never fire as there is no "src" in the tag and you only load the src attribute when the onload fires, so kind of a catch-22.
But I see you were trying to work with the image on the document as a solution. I should point out that that it is there just for reference. My actual full code does not use any image tags, all images are loaded programmatically in a very similar way to the example where I set the onload function programatically and then set the src property, like this;
Code:
var img=new Image();
img.onLoad = function() {alert("Loaded")};
img.src = "http://cti.itc.virginia.edu/~bcr/Labs/Kota_Reliquary.GIF";
The image on the page is just so people can see that the actual src link is valid. In my full project I'm actually loading many graphics for rendering on a HTML 5 canvas object. By caching them to memory I can plot them on the canvas in any way I please, just as you would do when coding for a game. But I must ensure that all images are loaded correctly before trying to plot them to canvas, hence the code to detect when an image has been loaded.