The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

No Left or Right Drag and Drop Shortcut - Help Please!

Hello guys!! I'm new in this forum!

I'm working on putting togheter my website, and I want that people who are visiting my website to not be able to right-left drag (and drop) and make shortcuts of the links I have on my website on their desktop or anywhere else on their computer.

I only want them to be able to add the website to favourites, if they want that, thru the normal procedure, using the menu (Favourites->Add To Favourires).

Does anyone one knows how I can do that? Can you please helme with this?

Why on earth do you want to stop people doing that? As a general rule, if you ever find yourself wanting to limit what users can do when theyt are on your site you should stop, hit yourself over the head with something solid and get on with creating sites that reward your visitors rather than driving them away.

ondragstart is an IE only event and wouldn't work for users of non-IE browsers (like myself) anyway.

Why on earth do you want to stop people doing that? As a general rule, if you ever find yourself wanting to limit what users can do when theyt are on your site you should stop, hit yourself over the head with something solid and get on with creating sites that reward your visitors rather than driving them away.

let's see, got anything solid laying around...
If you want some serious inspiration, don't stop until you see stars

How about this?? at school some of the people know about my website, one day we had a project, and one girl took an entire page of my website and put it on her project, after that she went around saying that is her creation, she only changed the pictures, but as she knows almost nothing about html - I don't know much either... but still much more than she knows - she came to me to fix the way those pictures look in the page, saying that she only was inspired by my webpage, she tries to sell ice to the eschimos...
I didn't say anything and I helped her, but of course I didn't like that at all.
And I know that thing doesn't wotk in Netscape, that's why I was asking about how it would be in Netscape.

But the technique you described does absolutely nothing to stop a potential theif from selecting the "save page" option from the browser's edit menu.

As has been discussed on these forums many times before, the only way you can be sure of stopping people from "stealing" your HTML is not to put it on the web in the first place. The same goes for your graphics. That's just a side effect of how the web works.