Possible Duplicate:
Check if image exists with given url using jquery
Change image source if file exists
I am throwing the value of an image path from a textbox into boxvalue and want to validate if the image exist using javascript.
var boxvalue = $('#UrlQueueBox').val();
I browsed stackoverflow and found the below to get the image width/height, but don't want to use this.
var img = document.getElementById('imageid');
How can an I validate if it is really an image from the image path?