<script type='text/javascript'> var image = new Image(); image.src = "image.jpg"; //your image path here if (image.width == 0) { alert("no image"); } else { alert("Image Exists"); } </script>