Forum Moderators: open
if(document.getElementById('myImgID').readyState=='complete'){
// image is loaded
}
else {
// image not finished loading
}
<img src="theimage.gif" id="myImgId">
check JS documentation how to implement properly with onReadyStateChange