PDA

View Full Version : how do u Block right click and right click with keybopard?


snakewithatilda
11-01-2002, 06:37 PM
that is my whole question how do i block a right click with keyboard and mouse?

joh6nn
11-01-2002, 09:00 PM
document.oncontextmenu = function() { return false; }

i wouldn't suggest doing it though; it only serves to make people angry.

Roy Sinclair
11-01-2002, 09:02 PM
This comes up a lot, you'd already have your answer if you'd looked at the existing topics. You did a fine job of putting in an appropriate topic which is much better than a lot of newbies but you should know that the search link on the pages can be a real friend when you've got a question and need an answer quickly.

zoobie
11-01-2002, 10:06 PM
What's weird is that ppl are trying to protect images that aren't theirs to begin with...:rolleyes:

whammy
11-02-2002, 02:32 AM
The idea of the internet is the sharing of knowledge and information. If someone else wrote it, give them credit. If someone steals your script, you can tell by your scripting style, and so can others. Because people who steal scripts don't know how to code and it's obvious.


:)

Mhtml
11-02-2002, 04:10 AM
Your best bet is to make it so that images will only loog good on your site like using an image background that makes it go with your site or you can really annoy people by floating an image over the top, use css to make it invisable and when they save it if you make the image "MAKE YOUR OWN IMAGES" they will see that..same if they go to properties and then link to it..

snakewithatilda
11-04-2002, 01:07 PM
Thanks guys. Really what I'm doing is trying to find out as much as I can about coding and what I can do. If any of you can tell me a good place to learn java script myself I'd be very happy.

requestcode
11-04-2002, 01:17 PM
Here are a couple of places you can start:
http://www.htmlgoodies.com
http://www.javascriptkit.com/javaindex.shtml

snakewithatilda
11-04-2002, 03:09 PM
Originally posted by joh6nn
document.oncontextmenu = function() { return false; }

i wouldn't suggest doing it though; it only serves to make people angry.

Thanks it worked. I wont use it too often I just like knowing what I can do. Right now I have no reason to block anyone.