Checking if image does exists using javascript
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3381663/check-if-image-exists-with-given-url-using-jquery">Check if image exists with given url using jquery</a><br>
  <a href="http://stackoverflow.com/questions/5678899/change-image-source-if-file-exists">Change image source if file exists</a>  </p>
</blockquote>



<p>I am throwing the value of an image path from a textbox into boxvalue and want to validate if the image exist using javascript.  </p>

<pre><code> var boxvalue = $('#UrlQueueBox').val();
</code></pre>

<p>I browsed stackoverflow and found the below to get the image width/height, but don't want to use this.</p>

<pre><code>var img = document.getElementById('imageid'); 
</code></pre>

<p>How can an I validate if it is really an image from the image path?</p>
