Custom Menu Pop-Up

Custom Menu Pop-Up

When I press the right mouse click, I’d like to have a custom menu pop up instead of the usual default browser pop-up. How can I do this with Javascript?

You can trap the right mouse click with an onMouseDown event handler and then display your custom menu. The menu would probably be a hidden DIV, which you would position based on the location of the mouse click and then set to display.


Share the Post: