在Windows Phone 8 Cordova项目的html页面中禁用复制/粘贴 [英] Disabling Copy/Paste in a html page of Windows Phone 8 Cordova project
本文介绍了在Windows Phone 8 Cordova项目的html页面中禁用复制/粘贴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们可以在Windows Phone 8 cordova项目的html页面文本中禁用复制粘贴选项吗?请帮忙。
Can we disable copy paste option in the text of a html page in Windows Phone 8 cordova project?Please help.
推荐答案
尝试从页面/控件中调用此函数
Try calling this function from your page/control
function DisableSelect() { var handler = function (e) {e.returnValue = false;} document.body.attachevent('onselectstart',handler,false);}
这篇关于在Windows Phone 8 Cordova项目的html页面中禁用复制/粘贴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文