Drag and drop across browser windows?
October 14, 2006 10:02 AM Subscribe
Web dev Q: Is there a way to figure out what has been dragged and dropped from one browser window to another?
posted by shortfuse to Computers & Internet (4 answers total)
Suppose I have 2 Firefox windows. Window 1 contains an HTML page with an image on it. If I drag+drop the image from window 1 to window 2, Firefox knows that it should open the image in window 2. If the image was linked to a webpage, then it instead opens the linked page in window 2.
I'd like to be able to do the "window 2" part in my own web app. The user could drag and drop any image from any website onto my web app's page. My web app would then figure out what has just been dropped (image URL or linked page URL) and act on it, without the event propagating to Firefox's default behavior.