I'm facing a weird issue in firefox . stopPropagation() not working for right click in firefox in my code but if I use an alert or breakpoint before the code it will work. it working smoothly in ie,safari,chrome,opera my code is given below
jquery
$("#div-login").click(function (e) {
e.stopPropagation();
});
then this
$("#div-login").mousedown(function (e) {
e.stopPropagation();
});
and this too
$("#div-login").click(function (e) {
if(e.button ===2)
e.stopPropagation();
});
markup
<div="div-login">
<fieldset>
---markup----
</fieldset>
</div>
but none of the above code is working for right click in firefox but working without a problem for left-click
I couldn't find out the problem please help....