473,503 Members | 3,740 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can i disable "RightClick Menu" in Internet Explorer ?

Hi,

How can i disable "RightClick Menu" in Internet Explorer, when
access the frontpage ?

tks a lot !
Ken
Nov 18 '05 #1
8 2439
Ken,

Setup your oncontextmenu event handler that will do nothing.

Eliyahu

"Ken Yu" <no**@none.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Hi,

How can i disable "RightClick Menu" in Internet Explorer, when
access the frontpage ?

tks a lot !
Ken

Nov 18 '05 #2
Eliyahu,

Sorry ! I want to disable "RightClick Menu" in WebForm ?

How can do that ?

tks a lot !
Ken
"Eliyahu Goldin" <re*************@monarchmed.com> ¼¶¼g©ó¶l¥ó·s»D:uh****************@TK2MSFTNGP10.phx .gbl...
Ken,

Setup your oncontextmenu event handler that will do nothing.

Eliyahu

"Ken Yu" <no**@none.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Hi,

How can i disable "RightClick Menu" in Internet Explorer, when
access the frontpage ?

tks a lot !
Ken


Nov 18 '05 #3
isn't that a javascript thing?

On Mon, 1 Nov 2004 16:39:07 +0800, "Ken Yu" <no**@none.com> wrote:
Eliyahu,

Sorry ! I want to disable "RightClick Menu" in WebForm ?

How can do that ?

tks a lot !
Ken
"Eliyahu Goldin" <re*************@monarchmed.com> ¼¶¼g©ó¶l¥ó·s»D:uh****************@TK2MSFTNGP10.phx .gbl...
Ken,

Setup your oncontextmenu event handler that will do nothing.

Eliyahu

"Ken Yu" <no**@none.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Hi,

How can i disable "RightClick Menu" in Internet Explorer, when
access the frontpage ?

tks a lot !
Ken



Nov 18 '05 #4
Ken,

When you right-click an html element, browser triggers oncontextmenu event.
The menu you see now is generated by the default event handler. You want to
disable the default behavior. To do this, you can write your own javascript
event handler for oncontextmenu event that will just do nothing. So nothing
will happen when you right-click.

Eliyahu

"Ken Yu" <no**@none.com> wrote in message
news:OZ****************@TK2MSFTNGP09.phx.gbl...
Eliyahu,

Sorry ! I want to disable "RightClick Menu" in WebForm ?

How can do that ?

tks a lot !
Ken
"Eliyahu Goldin" <re*************@monarchmed.com>

¼¶¼g©ó¶l¥ó·s»D:uh****************@TK2MSFTNGP10.phx .gbl...
Ken,

Setup your oncontextmenu event handler that will do nothing.

Eliyahu

"Ken Yu" <no**@none.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Hi,

How can i disable "RightClick Menu" in Internet Explorer, when
access the frontpage ?

tks a lot !
Ken



Nov 18 '05 #5
Chances are, you don't want to disable right-click. You only think you do.
What do you think yuou will accomplish with this? For example, some newbie
web developers think that they can prevent people from copying images with
such a trick. However, this is not possible. Generally speaking, disabling
browser functionality is a bad idea, and is usually a kluge that substitutes
for good design.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Ken Yu" <no**@none.com> wrote in message
news:OZ**************@TK2MSFTNGP09.phx.gbl...
Eliyahu,

Sorry ! I want to disable "RightClick Menu" in WebForm ?

How can do that ?

tks a lot !
Ken
"Eliyahu Goldin" <re*************@monarchmed.com>

¼¶¼g©ó¶l¥ó·s»D:uh****************@TK2MSFTNGP10.phx .gbl...
Ken,

Setup your oncontextmenu event handler that will do nothing.

Eliyahu

"Ken Yu" <no**@none.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Hi,

How can i disable "RightClick Menu" in Internet Explorer, when
access the frontpage ?

tks a lot !
Ken



Nov 18 '05 #6
I agree to the point that disabling browser functionality is a bad idea, but
you don't have to disable the standard menu whatsoever.

I am using rightclick a lot for standard windows form-like popup menu
functionality. In a standard screen, where you have a datagrid for selecting
rows, it is quite naturally to be able to rightclick a row and choose an
action from the popup. You still can get the browser's standard menu when
you click on other areas of the window.

Eliyahu

"Kevin Spencer" <ks******@takempis.com> wrote in message
news:uI*************@TK2MSFTNGP10.phx.gbl...
Chances are, you don't want to disable right-click. You only think you do.
What do you think yuou will accomplish with this? For example, some newbie
web developers think that they can prevent people from copying images with
such a trick. However, this is not possible. Generally speaking, and is usually a kluge that substitutes for good design.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Ken Yu" <no**@none.com> wrote in message
news:OZ**************@TK2MSFTNGP09.phx.gbl...
Eliyahu,

Sorry ! I want to disable "RightClick Menu" in WebForm ?

How can do that ?

tks a lot !
Ken
"Eliyahu Goldin" <re*************@monarchmed.com>

¼¶¼g©ó¶l¥ó·s»D:uh****************@TK2MSFTNGP10.phx .gbl...
Ken,

Setup your oncontextmenu event handler that will do nothing.

Eliyahu

"Ken Yu" <no**@none.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
> Hi,
>
> How can i disable "RightClick Menu" in Internet Explorer, when> access the frontpage ?
>
> tks a lot !
> Ken
>
>



Nov 18 '05 #7
Hi Eliyahu,

Now, THERE's an example of good design!

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:eK**************@TK2MSFTNGP09.phx.gbl...
I agree to the point that disabling browser functionality is a bad idea, but you don't have to disable the standard menu whatsoever.

I am using rightclick a lot for standard windows form-like popup menu
functionality. In a standard screen, where you have a datagrid for selecting rows, it is quite naturally to be able to rightclick a row and choose an
action from the popup. You still can get the browser's standard menu when
you click on other areas of the window.

Eliyahu

"Kevin Spencer" <ks******@takempis.com> wrote in message
news:uI*************@TK2MSFTNGP10.phx.gbl...
Chances are, you don't want to disable right-click. You only think you do.
What do you think yuou will accomplish with this? For example, some newbie web developers think that they can prevent people from copying images with such a trick. However, this is not possible. Generally speaking, and is

usually a kluge that substitutes
for good design.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Ken Yu" <no**@none.com> wrote in message
news:OZ**************@TK2MSFTNGP09.phx.gbl...
Eliyahu,

Sorry ! I want to disable "RightClick Menu" in WebForm ?

How can do that ?

tks a lot !
Ken
"Eliyahu Goldin" <re*************@monarchmed.com>

¼¶¼g©ó¶l¥ó·s»D:uh****************@TK2MSFTNGP10.phx .gbl...
> Ken,
>
> Setup your oncontextmenu event handler that will do nothing.
>
> Eliyahu
>
> "Ken Yu" <no**@none.com> wrote in message
> news:%2******************@TK2MSFTNGP12.phx.gbl...
>> Hi,
>>
>> How can i disable "RightClick Menu" in Internet Explorer,

when >> access the frontpage ?
>>
>> tks a lot !
>> Ken
>>
>>
>
>



Nov 18 '05 #8
just handle the oncontextmenu event of the document object, and return false.
Example:
<script language="Javascript">
function document.oncontextmenu() {
return false;
}
</script>

hope this helps!
"Kevin Spencer" <ks******@takempis.com> wrote in message news:<Ok**************@TK2MSFTNGP09.phx.gbl>...
Hi Eliyahu,

Now, THERE's an example of good design!

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:eK**************@TK2MSFTNGP09.phx.gbl...
I agree to the point that disabling browser functionality is a bad idea,

but
you don't have to disable the standard menu whatsoever.

I am using rightclick a lot for standard windows form-like popup menu
functionality. In a standard screen, where you have a datagrid for

selecting
rows, it is quite naturally to be able to rightclick a row and choose an
action from the popup. You still can get the browser's standard menu when
you click on other areas of the window.

Eliyahu

"Kevin Spencer" <ks******@takempis.com> wrote in message
news:uI*************@TK2MSFTNGP10.phx.gbl...
Chances are, you don't want to disable right-click. You only think you do. What do you think yuou will accomplish with this? For example, some newbie web developers think that they can prevent people from copying images with such a trick. However, this is not possible. Generally speaking, and is usually a kluge that substitutes for good design.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Ken Yu" <no**@none.com> wrote in message
news:OZ**************@TK2MSFTNGP09.phx.gbl...
> Eliyahu,
>
> Sorry ! I want to disable "RightClick Menu" in WebForm ?
>
> How can do that ?
>
> tks a lot !
> Ken
>
>
> "Eliyahu Goldin" <re*************@monarchmed.com> ¼¶¼g©ó¶l¥ó·s»D:uh****************@TK2MSFTNGP10.phx .gbl... > > Ken,
> >
> > Setup your oncontextmenu event handler that will do nothing.
> >
> > Eliyahu
> >
> > "Ken Yu" <no**@none.com> wrote in message
> > news:%2******************@TK2MSFTNGP12.phx.gbl...
> >> Hi,
> >>
> >> How can i disable "RightClick Menu" in Internet Explorer, when > >> access the frontpage ?
> >>
> >> tks a lot !
> >> Ken
> >>
> >>
> >
> >
>
>


Nov 18 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1875
by: Simon Wigzell | last post by:
Is it possible within javascript to stop the little pulldown menu (with the values that the browser remembers have previously been entered into the field) from appearing? I have one very dense form...
0
1902
by: maitrepoy | last post by:
Hello I have to create a small addin which works on Powerpoint, Word, Outlook, and Excel on Office 2000, XP, and 2003. This addin consists in adding 2 new Buttons in the "File" Menu of office....
0
2402
by: maitrepoy | last post by:
hello I have to create a small addin which works on Powerpoint, Word, Outlook, and Excel on Office 2000, XP, and 2003. This addin consists in adding 2 new Buttons in the "File" Menu of office....
1
1567
by: xlar54 | last post by:
Can someone tell me why this menu would be disabled? In the solution explorer, right click on a project, then "Add". A submenu usually appears allowing you to add a new item, etc, but this menu...
1
1448
by: jerunyon | last post by:
Recently I noticed that if you "right click" and "open link" on my site, you bypass the javascript code that fires "onclick". I have several pages that fall victim to this, and I could probably...
4
4922
by: Firoz72000 | last post by:
Hi All, I am using WindowsXP operating system. I was able to hide the files and to see them : I was going to the "Tool" menu then "Folder Option" and then "View" tab and "show the hidden files and...
1
2003
by: rmgalante | last post by:
I was wondering if anyone knows whether MS has a fix for the Menu Control. If the page is loading while you mouse over a menu control with child menus that pop out, you can generate the following...
0
1329
by: =?Utf-8?B?cmZsYXphcm8=?= | last post by:
Hi All, We are trying to build an automation utility to configure OS. I found a way to automate the process below via registry: Control Panel -Taskbar and Start Menu ->Start Menu Tab --Select...
0
7192
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7261
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7315
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7445
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4991
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4665
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3158
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3147
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
369
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.