Detect text dragged from one application into the web browser?
I would like to be able to handle text being dragged from one application into my web app. I've looked up examples for the onDragDrop
event but not found anything useful. At the moment I'm experimenting with dropping the text onto a <textarea>
so I can easily recover the dropped text.
Has anyone had any experience开发者_JS百科 doing this?
Edit (for clarification): I don't mind what element I drop on to as long as I can get the text that's dropped. I won't be dropping anything other than text.
You´re maybe looking for the ondrop event of HTML5
精彩评论