Try this:
map.div.oncontextmenu = function noContextMenu(e) {
if (e != null){
if (OpenLayers.Event.isRightClick(e)){
alert("Right button click"); // Add the right click
menu here
}
} else {
alert("Right button click"); // Add the right click
menu for IE
}
return false; //cancel the right click of brower
};_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
