Faculty of Science and Information Technology > Science and Information
Protect Copy from Webpage
(1/1)
Narayan:
Write the following Code
<script type=”text/JavaScript”>
//courtesy of hostcoding.com
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>
Thank you.
kaushik.swe:
Why cant we use this on student's exam scripts?
By the way, Thank You.
Navigation
[0] Message Index
Go to full version