Article View: microsoft.public.inetsdk.programming.scripting.jscript
Article #9Re: event handler for right mouse button in JS, possible?
From: Adam Killander
Date: Wed, 29 Sep 1999 00:00
Date: Wed, 29 Sep 1999 00:00
20 lines
1872 bytes
1872 bytes
You can't disable the contextmenu unless you're running IE5 since the right mouse button doesn't fire a click event. You'll have to use the oncontextmenu event handler in IE5 to disable the context menu. There's no workaround. Believe me cause I've tried! /Adam Jim Ley wrote: > > Rafael Rasinger <rasinger@atc.co.at> wrote in message > news:37f20e1b@news.kapsch.co.at... > > Hi Vidar! > > > > Thank you again! A last question. Using your method, which perfectly works, > > one problem arises. The contextmenu also appears afterwards. Is there a > > possibility to switch it off using script? > > You need to set the event.returnValue to false - check the documentation! > > Jim.
Technical Details
Message-ID:
<37F219DD.F848D3E8@enator.se>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37f1c30a@news.kapsch.co.at> <uGiUVrlC$GA.291@cppssbbsa02.microsoft.com> <37f1ea4e@news.kapsch.co.at> <OujxGnmC$GA.289@cppssbbsa02.microsoft.com> <37f20e1b@news.kapsch.co.at> <e8hH90nC$GA.283@cppssbbsa04>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4a5,ac438531d738d94e X-Google-Attributes: gid10d4a5,public X-Google-Thread: 10731d,ac438531d738d94e X-Google-Attributes: gid10731d,public X-Google-Thread: fb3cb,ac438531d738d94e X-Google-Attributes: gidfb3cb,public X-Google-Thread: 10c71c,ac438531d738d94e X-Google-Attributes: gid10c71c,public X-Google-Thread: fcc66,ac438531d738d94e X-Google-Attributes: gidfcc66,public From: Adam Killander <adam.killander@enator.se> Subject: Re: event handler for right mouse button in JS, possible? Date: 1999/09/29 Message-ID: <37F219DD.F848D3E8@enator.se> X-Deja-AN: 530715081 Content-Transfer-Encoding: 7bit References: <37f1c30a@news.kapsch.co.at> <uGiUVrlC$GA.291@cppssbbsa02.microsoft.com> <37f1ea4e@news.kapsch.co.at> <OujxGnmC$GA.289@cppssbbsa02.microsoft.com> <37f20e1b@news.kapsch.co.at> <e8hH90nC$GA.283@cppssbbsa04> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii MIME-Version: 1.0 Newsgroups: microsoft.public.inetsdk.programming.scripting.jscript,microsoft.public.scripting.jscript,borland.public.intrabuilder.javascript,comp.lang.javascript,de.comp.lang.javascript