Cryptic title, but it's hard to explain. With Firefox, head over to http://images.google.com do a random search, and then drag the first search result to the URL bar. You'll see it it goes to the page that had the image anchor. Then click the "see full size image" link, and then drag the image to the address bar.
In the first example, it copied the anchor, not the image, to the address bar. And in the second example, it took the URL of the image itself.
Is there a way to get to the image inside the anchor? I'm using a drop target that's in an iframe on another domain, so targetting the img's directly and adding JS events is out.
I don't expect to be able to do this with straight JS (though I hope). In fact I'm not even sure if flash/actionscript can do this!
My thought is I need to set up a drop target and get details about the element that was dropped... if it's an anchor, I can dive into the DOM and get the img inside it. This, of course, assumes that the DOM element itself is what's being dragged and that the browser isn't just copying the link.
Any help would be much appreciated.
Cheers! -eli