[Javascript] Disable left mouse click and drag on images
Paul Novitski
paul at juniperwebcraft.com
Fri Jul 21 17:45:36 CDT 2006
At 01:05 PM 7/21/2006, Troy III Ajnej wrote:
>THE SCREEN CAPTURE ISSUE - my last cent
>Since almost all screen capture applications along with the "print
>screen" are invoked with a key stroke, we can use
>key down event to call the clearRAM function just in time before the
>actual capture takes place. So there will be no
>screen capturing either.
Pretty clever stuff, Troy. With a little tweaking (the initializing
logic has to go into a window.onload-triggered function), your script
fills several of the holes.
However:
- The Print Screen button (on a Windows machine, at least) is not
captured by the JavaScript onkeydown and onkeypress events. Even if
it were, I suspect it would copy the screen image to the clipboard
before bubbling up to the browser and then to the client-side script.
- In Firefox, neither clicking nor right-clicking on a DIV triggers clearRAM().
- The Firefox web developer toolbar menu pick 'Disable JavaScript'
halts scripting before the onblur event is processed, leaving the
page displayed with the original background images. (In fact, none
of the web dev toolbar functions seems to trigger the blur event.)
- With the page displayed and then Javascript disabled, the user can
look at the page source and CSS source to see the image URLs and
download them as separate requests.
Regards,
Paul
More information about the Javascript
mailing list