faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

41 of 113 people (36%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

How can I disable the PrintScreen Key?

Apr 5th, 2008 20:45
ha mo, Sundar Rao, Colin Fraser, George Kosmidis,


Simply put, you cannot, but why do you want to try? If you are thinking
about not getting your code pinched and used by every mother and his
dog,  there are a number of new programs around that will do a better
job of it then they have in the past. However, I am sure that they dont
even map the  PrintScreen key. If you have some other arcane idea in
mind, well, why bother?   
BTW, if you do get this solved, I bet it is not with Javascript, but
more likely to be Java or a small C++ applet, but that presents it own
problems..Let me know..
**********************************************
<html>
<head>
<script language="Javascript">
function setClipBoardData(){
     setInterval("window.clipboardData.setData('text','')",20);
}
function blockError(){
     window.location.reload(true);
     return true;
}
window.onerror = blockError;
</script>
</head>
 <body onload="setClipBoardData();">
</body>
</html>
        ----disable the print screen
                                      ---------sundar
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com