I am just about ready to release my photography portfolio site, and I am really paranoid about people copying my images.
I've got some nifty jQuery that disables right clicking on images, and now I want to create an alert if someone presses print screen on their keyboard.
My code doesnt seem to work and I am sure that I have the correct keyCode:
<script type="text/javascript">
$('*').bind('keypress', function (e) {
if (e.keyCode == 44) {
alert("don't copy my work");
return false;
}
);
</script>
The interesting thing is that my code works for other keypresses such as enter (13)? Can anyone help expand on why this may not be working?
Many thanks!