473,231 Members | 2,026 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,231 software developers and data experts.

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 2422
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> 级糶秎ン穝籇: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> 级糶秎ン穝籇: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>

级糶秎ン穝籇: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>

级糶秎ン穝籇: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>

级糶秎ン穝籇: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>

级糶秎ン穝籇: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> 级糶秎ン穝籇: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
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
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
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
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
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
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
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
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
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you抣l learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.