Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 29-Oct-13 1:27am
v2
Comments
ZurdoDev 29-Oct-13 7:27am    
I have seen some sites do that with JS. I am not sure how, keydown event on a div or something so I would search for that if no one responds.
Harshil_Raval 29-Oct-13 7:33am    
Agree with RyanDev. Also, there is one font called "cufon" font. it also does that.
Thomas Daniels 29-Oct-13 8:34am    
You posted this question already here: http://www.codeproject.com/Questions/674352/how-to-disable-right-click-and-copy-option
Please don't repost.

Try this.

http://rajeshstutorials.blogspot.in/2012/03/disabling-right-click-cut-copy-paste.html
 
Share this answer
 
XML
<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>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900