1. 禁止选取
<input type="text" onselectstart="return false" />
2. 禁止粘贴
<input type="text" onpaste="return false" />
3. 禁止复制
<input type="text" oncopy="return false;" oncut="return false;" />
1. 禁止选取
<input type="text" onselectstart="return false" />
2. 禁止粘贴
<input type="text" onpaste="return false" />
3. 禁止复制
<input type="text" oncopy="return false;" oncut="return false;" />
本文标题:控制输入框的:选择,复制,粘贴功能。
本文链接:https://www.haomeiwen.com/subject/iusrfftx.html
网友评论