@TheBearMayMar 06.2008 — #Not really, but if the image is greater than 30 pixels high this might work: <i> </i> window.onload=function (){ var pic1= new Image(); pic1.src="http://www.yourURL.com/myImage.jpg"; if ((pic1.height == 30 && navigator.appName == "Microsoft Internet Explorer") || pic1.height == 0)// IE 30 is default, FF 0 alert("Possible missing image"); else alert ("Image height found: "+pic1.height); }
So why 30, and why the onload? IE defaults the new Image() function to 30 pixels unless you pass it a parameter or load a valid image (FF defaults to zero as I would expect). The onload, haven't figured out why, but unless I execute it after the page loads I was getting an intermittent false positive.