开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜