BTW, your example in IE6 produces following results: for click: Left click: You clicked with your button. Event.button = 0 and Event.which = undefined Right and middle click: no effect, as expected
for mousedown, as expected: Left click: You clicked with your Left button. Event.button = 1 and Event.which = undefined You clicked with your Middle button. Event.button = 4 and Event.which = undefined You clicked with your Right button. Event.button = 2 and Event.which = undefined See, for click event isLeftButton is broken. Should I send you example to prove that click may be toggled via keyboard? > <html> > <head> > <script type="text/javascript" > src="http://prototypejs.org/assets/2008/1/25/prototype-1.6.0.2.js"></script> > <script type="text/javascript"> > function clicking(e) > { > $('clicker').update($('clicker').innerHTML + '<br />' + > 'You clicked with your ' + > (Event.isLeftClick(e) ? 'Left' : '') + > (Event.isRightClick(e) ? 'Right' : '') + > (Event.isMiddleClick(e) ? 'Middle' : '') + > ' button. Event.button = ' + e.button + > ' and Event.which = ' + e.which > ); > } > </script> > <title>Testing clicking</title> > </head> > <body> > <span id="clicker">Left, Right or Middle click me!</span> > <script type="text/javascript"> > Event.observe(document.body, 'click', clicking); > </script> > </body> > </html> -- arty ( http://arty.name ) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~----------~----~----~----~------~----~------~--~---