开发者

how to disable drop text inside a textarea?

How to prevent users from dragging and dropping text inside a textarea? is there an attribute which control this or need some js code?

开发者_Go百科Want to disable drop but not to make it readonly


What 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>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜