I use the following code to disable the 2nd and 3rd mouse button clicks:
======================================
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
{
return false;
}
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3))
{
alert("Action not allowed."
return false;
}
return true;
======================================
If the borwser is IE I needed to put that alert box in these in order to capture the clicks. (i.e. I could not just return false in this instance as the right button was still firing off). Any ideas on how I can do this in IE without having an alert box or any other type of user-required action?
-rpeters
======================================
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
{
return false;
}
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3))
{
alert("Action not allowed."
return false;
}
return true;
======================================
If the borwser is IE I needed to put that alert box in these in order to capture the clicks. (i.e. I could not just return false in this instance as the right button was still firing off). Any ideas on how I can do this in IE without having an alert box or any other type of user-required action?
-rpeters