开发者

Detect text dragged from one application into the web browser?

开发者 https://www.devze.com 2023-02-28 18:15 出处:网络
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 experimen

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

精彩评论

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