title: Get redirected URL from an image redirect in javascript
body: <p>Imagine we have an img tag which points to <a href="http://example.com/photo.png" rel="nofollow">http://example.com/photo.png</a>.  This call results in a 302 redirect to <a href="http://example.com/path/to/my/photo.png" rel="nofollow">http://example.com/path/to/my/photo.png</a>.  Is there a way from javascript that I can see the second address, the one to which the image was redirected?  I'm assuming that such a thing is not possible, but would love to know if it is.</p>
  
  <p><strong>Update:</strong> Please note that I am talking about an IMG tag.  All of the responses are assuming that I am using an ajax request.  Clearly, as you can tell above, that is not the case.</p>