PDA

View Full Version : disable click-drag image grabbing


Shecky
02-13-2003, 09:02 PM
is there such a thing as a script that prevents a user from saving an image on my webpage to his or her drive by dragging it to their desktop?

I'm not terrbly interested in protecting my content, i just think the ability to do so is especially tacky in my current layout. I found one that stopped them via an alert window, but thats just lame.

thanks, smart ppl.

Philip M
02-13-2003, 09:25 PM
You cannot stop people from saving text or images once
they have been downloaded into their computer. At best you can slow them down a bit, or perhaps block the very inexperienced.

Shecky
02-13-2003, 10:37 PM
i wonder if you read my entire post at all.

I realize, at the very least the images are in the users temporary internet page files, but like i said, i dont really want to protect my content, i just want to stop them from being able to drag and drop and image file to their desktop.

A similar idea to the no right click, or the no text select scripts.

If someone knows of such a script, or how to put it together simply, that would be great. Like i said its not critical, i just want it as an element of style in my page.

beetle
02-13-2003, 11:01 PM
<script type="text/javascript">

document.ondragstart = function () { return false; };

</script>


IE-only, but that's what most people use anway

Shecky
02-14-2003, 12:42 AM
thank you!

/me gives phil an extra kick on his way out.

:-P