Code:
<script type="text/javascript">
initMenu();
MenuObj.style.display = 'none';
var bx = document.getElementById("box");
bx.onclick = function( evt )
{
if ( evt == null ) evt = window.event;
if ( evt.which == 3 ) { showMenu(); }
}
document.documentElement.onclick = hideMenu;
</script>
BUT...
But the right click only works *WHILE* the drop down is being displayed.
If you try to right click on the <select> before the <option>s are all being displayed, you get the normal page context menu.
Another way to do this would be to use document.documentElement.onclick and check for right click (same as I do there) and *also* check to see if the mouse is within the bounds of the <select>. But that's a pain in the patootie.
Hmmm...might be a tad easier if you surrounded the <select> with a <div> and looked for the mouse in the <div>??