I found a solution: document.oncontextmenu = function(){return false;};
so when i right click it disable the contextmenu on the body: then when i bind "click" event i do: document.oncontextmenu = function(){return true;}; so when one is on the other is off. Works pretty well with IE's. wycats wrote: > > Eh. Good point. You should probably be using .bind anyway, even for stuff > like "click", to keep your apps future-proof. > > -- Yehuda > > On 1/2/07, John Resig <[EMAIL PROTECTED]> wrote: >> >> > no luck. IE7 says this object does not support this method or property. >> >> I think he meant: >> $("[EMAIL PROTECTED]").bind("contextmenu", function() { return false; >> }); >> >> There's no contextmenu event method, which is what causes the error >> that you saw. >> >> --John >> >> _______________________________________________ >> jQuery mailing list >> discuss@jquery.com >> http://jquery.com/discuss/ >> > > > > -- > Yehuda Katz > Web Developer | Wycats Designs > (ph) 718.877.1325 > > _______________________________________________ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > > -- View this message in context: http://www.nabble.com/disable-div-oncontextmenu--tf2910415.html#a8134595 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/