How to disable Right-Click in browser? Not for website programming.


B

Bob Brown INC.

I need to know how to Disable Right-Click ability when using any web
browser [IE, FireFox,Mozilla, Seamonkey etc]???

Have someone with a disability and they accidentally hit the right
mouse button very very often, They want the right button disabled
while they're using the Browser. Is their a way to do this? Software?
I'm will and able to edit the Registry.

It's Win Xp Service pack [1]
thanks
 
Ad

Advertisements

G

Guest

The oncontextmenu event can be captured. You can write a default style sheet
for IE that sets the click to false. IE, tools menu, Options, General tab,
"Accessibility" button.

<head>
window.document.body.oncontextmenu=false
</head>
 
W

Wesley Vogel

For Internet Explorer. I have no idea about the others.

NoBrowserContextMenu: Disables the right-click shortcut menu on a Web page.

For editing the registry, see these.

Internet Explorer Restrictions Registry Settings
http://www.winguides.com/registry/display.php/442/

The restrictions that are available to Internet Explorer 6.0 SP1
http://support.microsoft.com/?id=823057

If XP Pro, you can use Group Policy (gpedit.msc) to disable it.

Administrative Templates\Windows Components\
Internet Explorer\Browser menus\Disable Context menu

"Prevents the shortcut menu from appearing when users click the right mouse
button while using the browser. If you enable this policy, the shortcut menu
will not appear when users point to a Web page, and then click the right
mouse button."
Disable Context menu
http://www.boyce.us/gp/gpcontent.asp?ID=750

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
S

SingaporeWebDesign

Hello,

Isn't that JavaScript which has nothing to do with CSS?

--
Singapore Website Design
http://www.bootstrike.com/Webdesign/
Singapore Web Hosting
http://www.bootstrike.com/WinXP/faq.html
Windows XP FAQ

Mark L. Ferguson said:
The oncontextmenu event can be captured. You can write a default style
sheet
for IE that sets the click to false. IE, tools menu, Options, General tab,
"Accessibility" button.

<head>
window.document.body.oncontextmenu=false
</head>
--
Was this post helpful to you? Voting helps others who use the web
interface.
Mark L. Ferguson



Bob Brown INC. said:
I need to know how to Disable Right-Click ability when using any web
browser [IE, FireFox,Mozilla, Seamonkey etc]???

Have someone with a disability and they accidentally hit the right
mouse button very very often, They want the right button disabled
while they're using the Browser. Is their a way to do this? Software?
I'm will and able to edit the Registry.

It's Win Xp Service pack [1]
thanks
 
A

Ayush

[Mark L. Ferguson]s message :
The oncontextmenu event can be captured. You can write a default style sheet
for IE that sets the click to false. IE, tools menu, Options, General tab,
"Accessibility" button.

<head>
window.document.body.oncontextmenu=false
</head>

<script>
document.body.oncontextmenu=function(){return false}
</script>


Good Luck, Ayush.
 
Ad

Advertisements

B

Bob Brown INC.

Problems is, It's using firefox/mozilla exclusivly, never uses IE.

On Sat, 12 May 2007 12:20:30 -0600, "Wesley Vogel"
<123WVogel955@comcast.net> Let everyone including the NSAs Internet
database storage program know as they typed on their keyboard faster
than a monkey on crack the following:
 
B

Bob Brown INC.

Sorry, didn't make this clear, I'm using mozilla/firefox only. I never
use IE enough for this to matter.
thnx

On Sun, 13 May 2007 02:34:39 +0800, "SingaporeWebDesign"
<SingaporeWebDesign_ng2@bootstrike.com> Let everyone including the
NSAs Internet database storage program know as they typed on their
keyboard faster than a monkey on crack the following:
 
I

Iceman

I need to know how to Disable Right-Click ability when using any web
browser [IE, FireFox,Mozilla, Seamonkey etc]???

Have someone with a disability and they accidentally hit the right
mouse button very very often, They want the right button disabled
while they're using the Browser. Is their a way to do this? Software?
I'm will and able to edit the Registry.

It's Win Xp Service pack [1]
thanks
In Firefox, Mozilla and Seamonkey you can remove items in the UserContext
menu by editing the UserChrome file. Alternately, it can be done using a
Java script. See this forum thread:
http://forums.mozillazine.org/viewtopic.php?p=885577&sid=92e36cced3f4ca2a0820ed90c2cec131

Shorter link: http://tinyurl.com/2m2fa9

You should, BTW, have a look at this article before you disable
right-click. The author has a point.
http://www.sitepoint.com/article/dont-disable-right-click
 
E

Elmo

Bob said:
I need to know how to Disable Right-Click ability when using any web
browser [IE, FireFox,Mozilla, Seamonkey etc]?

Have someone with a disability and they accidentally hit the right
mouse button very very often, They want the right button disabled
while they're using the Browser. Is there a way to do this? Software?
I'm willing and able to edit the Registry.

It's Win Xp Service pack [1]
thanks
In the Control Panel, see if the Mouse applet will let you set the
button to open something other than the Context Menu, such as
Click/Select or whatever the left-click option is called within that
mouse. Then the Context Menu button on the keyboard will still be
available.
 
Ad

Advertisements

B

Bob Brown INC.

On Sat, 12 May 2007 23:04:57 +0100, Iceman <ismand_57@hotmail.com> Let
everyone including the NSAs Internet database storage program know as
they typed on their keyboard faster than a monkey on crack the
following:
I need to know how to Disable Right-Click ability when using any web
browser [IE, FireFox,Mozilla, Seamonkey etc]???

Have someone with a disability and they accidentally hit the right
mouse button very very often, They want the right button disabled
while they're using the Browser. Is their a way to do this? Software?
I'm will and able to edit the Registry.

It's Win Xp Service pack [1]
thanks
In Firefox, Mozilla and Seamonkey you can remove items in the UserContext
menu by editing the UserChrome file. Alternately, it can be done using a
Java script. See this forum thread:
http://forums.mozillazine.org/viewtopic.php?p=885577&sid=92e36cced3f4ca2a0820ed90c2cec131

Shorter link: http://tinyurl.com/2m2fa9

You should, BTW, have a look at this article before you disable
right-click. The author has a point.
http://www.sitepoint.com/article/dont-disable-right-click
Something to read/consider. thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top