PDA

Click to See Complete Forum and Search --> : is there a way to..


Sep 29th, 2000, 05:59 PM
deny access to a user who right clicks on my web page?

i saw it before, i think, and i've always been curious as to how they do it.

monte96
Sep 30th, 2000, 12:38 AM
You can but there is no point.

You can easily capture the mouseclick and prevent it from displaying a menu but it will not keep them from viewing source, or getting any images on the page. Remember all of those images are sent to the client to be displayed. So they in a sense already have them in the Temporary Internet files folder.

I personally hate it when someone captures the right mouse click cuz I use it all the time to go back.

Sep 30th, 2000, 02:08 AM
monte96 is correct. You can. And here is how:

<body oncontextmenu="return false" ondragstart="return false" onselectstart="return false">

Very simple, yet effective code, aye? :rolleyes:

To everyone: Enjoy it for your webpage!

Also, billyboy, this will disable the right click menu, but in IE, if the person click View Source on the menu, they can stil be able to see it. But that can be avoided as well. All you have to do is have frames. But they could always could get your source other ways easily.

Oct 2nd, 2000, 10:13 AM
thanks you guys. i was just curious as to what the code looked like. at least now i know.

it's pretty annoying, though. just next to those scrolling texts on the status bar.

oh, well. :rolleyes: