Check to see if the image is finished loading:
The result of x could be:
The complete property returns whether or not the browser is finished loading an image.
If the image is finished loading, the complete property returns true. If the image is not finished loading, this property returns false.
The complete property is supported in all major browsers.
|Return Value:||A Boolean that indicates whether the browser is finished loading the image or not. Returns true if the loading is finished, otherwise it returns false|
Check to see if the image is finished loading on body onload: