One possible way is to use onload function for images. If image exists the onload events occurs. I used this method for our Product CD to check the new product version.
Look the following example:
<Script LANGUAGE="JavaScript">
function check(imgURL) {
var img=new Image();
img.onload=exists;
img.src=imgURL;
}
function exists() {
alert("exists"
}
</script>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.