admin管理员组文章数量:1315322
How to prevent users from dragging and dropping text inside a textarea? is there an attribute which control this or need some js code?
Want to disable drop but not to make it readonly
How to prevent users from dragging and dropping text inside a textarea? is there an attribute which control this or need some js code?
Want to disable drop but not to make it readonly
Share Improve this question edited Sep 1, 2011 at 19:20 Amr Elgarhy asked Sep 1, 2011 at 17:11 Amr ElgarhyAmr Elgarhy 69.1k70 gold badges192 silver badges310 bronze badges3 Answers
Reset to default 9What you want to do is an usability fault, but never mind...
<textarea ondrop="return false;">
I assume you don't want to disable normal typing into it.
<textarea ondragstart="return false" ondrop="return false">
While am trying with this code,its working fine in all browsers....
Yes the attributes name is disabled
:
<textarea disabled="disabled"></textarea>
本文标签: javascripthow to disable drop text inside a textareaStack Overflow
版权声明:本文标题:javascript - how to disable drop text inside a textarea? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741976749a2408168.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论