Why Image 'complete' property always return true even if there is no src tag?
问题 I just write document.createElement("img").complete;//To check whether image is loaded or not In Firefox,it returns true. In IE,it return false OR In a html page just create one image as: <!-- IMG tag with no SRC attribute. --> <img id="noSrcImg" /> and In js check the complete property value : var img = document.getElementById("noSrcImg"); img.complete true for FF and false for IE Can any one explain why this inconsistent behavior? Is there any other better way to check whether image is