如何ctrl(控制)键以避免复制选项 [英] how to ctrl(Control) Key to avoid the copy option

查看:90
本文介绍了如何ctrl(控制)键以避免复制选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个在线考试门户,需要帮助来禁用ctrl键



请提供我需要的帮助,以便网站上的内容不会能够复制并获得分发。

解决方案

请参考以下链接,它可以帮助您:



http://forums.asp.net/t/1058202.aspx [ ^ ]



http://evanhahn.com/how-to-disable-copy-paste-on-your-网站/ [ ^ ]



http://stackoverflow.com/questions/3020715/disabling-copy-paste-in-a-web-page [ ^ ]


试试这个。



http://rajeshstutorials.blogspot.in/2012/03/disabling-right-click-cut-copy-paste.html

 <   script     language   =  javascript >  
function killCopy(e)
{
return false
}
函数reEnable()
{
返回true
}
document.onselectstart = new函数(return false)
if(window.sidebar){
document.onmousedown = killCopy
document.onclick = reEnable
}
< / script >


I am developing an on-line exam portal and need help to disable the ctrl key

Please provide me the needful help so the content on the website will not be able to be copy and get distributed.

解决方案

Refer below link it may help you :

http://forums.asp.net/t/1058202.aspx[^]

http://evanhahn.com/how-to-disable-copy-paste-on-your-website/[^]

http://stackoverflow.com/questions/3020715/disabling-copy-paste-in-a-web-page[^]


Try this.

http://rajeshstutorials.blogspot.in/2012/03/disabling-right-click-cut-copy-paste.html


<script language="javascript">
function killCopy(e)
{
return false
}
function reEnable()
{
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=killCopy
document.onclick=reEnable
}
</script>


这篇关于如何ctrl(控制)键以避免复制选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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