禁用复制和粘贴事件,例如,firrefox,chrome,safari [英] disable copy and paste event in ie ,firrefox,chrome,safari

查看:339
本文介绍了禁用复制和粘贴事件,例如,firrefox,chrome,safari的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何禁用复制和粘贴事件,例如,firrefox,chrome,safari

how to disable copy and paste event in ie ,firrefox,chrome,safari

推荐答案

这是一个答案: http://stackoverflow.com/问题/ 13647000 /是一个跨浏览器的方式来防止复制并粘贴在网站上的平面 [ ^ ]
Here is an answer: http://stackoverflow.com/questions/13647000/is-there-a-cross-browser-way-to-prevent-cut-copy-and-paste-on-a-website-in-plai[^]


http://stackoverflow.com/questions/13647000/is-there-a-cross-browser-way-to-prevent-在网站上剪切复制并粘贴[^]
http://stackoverflow.com/questions/13647000/is-there-a-cross-browser-way-to-prevent-cut-copy-and-paste-on-a-website-in-plai[^]


如果您使用的是asp.net控件,那么使用此代码可能会对您有所帮助: -



< asp:textbox id =txtconfirmEmailmaxlength =50runat =servercssclass =csstxtboxoncopy =return falseoncut =返回falseonp aste =return falsexmlns:asp =#unknown>
If you are using asp.net controls then use this code might this will help you:-

<asp:textbox id="txtconfirmEmail" maxlength="50" runat="server" cssclass="csstxtbox" oncopy="return false" oncut="return false" onpaste="return false" xmlns:asp="#unknown">


这篇关于禁用复制和粘贴事件,例如,firrefox,chrome,safari的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆