Forum Moderators: open
Any takers? Bernard, you out there? :)
I think the onerror event handler is what you want. Create an image object, associated with a local variable...
var img = new Image()
img.onload = function(){imageExists(true)}
img.onerror = function(){imageExists(false)}
img.src = input_src_stringfunction imageExists(exists)
{
if(exists)
//do this
else
// do that
}