Question How to disable Ctrl+C , Ctrl+V , Ctrl+A in any web page by using javascript.
More..
Disable Button after clicking on it.
Solution:
just copy and paste below script in <head> section
and call the function in html body
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMc0nrwVoeewJGGyEI_xWVYV-TYVBlHuzS9aOnzSE4b2lcrhFupNY4_WAJMKupCBVYEKE1PxaKNEv7WGMGzPUHgCn5WhjiHND7NvQLWfp4hhDKPADCB-3jGiK9pwnNnFJY3ZAtDej1O0pP/s200/JavaScript-logo%255B1%255D.png)
Disable Button after clicking on it.
Solution:
just copy and paste below script in <head> section
<script type="text/javascript">
function Disable_Control_C() {
var keystroke = String.fromCharCode(event.keyCode).toLowerCase();
if (event.ctrlKey && (keystroke == 'c' || keystroke == 'v' || keystroke == 'a')) {
alert("This function not allowed");
event.returnValue = false; // disable Ctrl+C
}
}
</script>
and call the function in html body
<body onkeydown="javascript:Disable_Control_C()">
Hello World!
</body>
</html>