try this on domready:
document.addEvent('contextmenu',function(e) {
e.stop();
});
On Tue, Dec 15, 2009 at 7:36 PM, Jon Hancock <[email protected]> wrote:
> this does not stop the event. I get the alert, but I also still get
> the menu.
> I'm using mootools 1.2.4.
> thanks, Jon
>
> On Dec 15, 12:27 pm, Dirar Abu Kteish <[email protected]> wrote:
> > try this:
> >
> > document.addEvent('click', function(event){
> > if(event.rightClick){alert('oka');event.stop();}
> >
> > });
> > On Tue, Dec 15, 2009 at 7:16 PM, Jon Hancock <[email protected]>
> wrote:
> > > I'm looking to disable the browser context menu.
> > > I've tried:
> >
> > > <body oncontextmenu='return false;'></body>
> >
> > > This does not work. I realize many don't like this "feature", but its
> > > something we want/need for this new site.
> > > My site only works with javascript enabled, so I'm not worried if the
> > > solution requires javascript.
> > > Any ideas? Is there a mootools specific way?
> > > thanks, Jon
> >
> > --
> > Dirar Abu Kteish
> > Zan Studio
> > Web Development Manager
> > Mob.:+970-597-100118
> > website:www.zanstudio.com
>