Custom Menu Pop-Up

Question:
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?

Answer:
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:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: