Contextual menus are a very common user interface feature used by many desktop applications.
Such menus can help the users becoming more productive, as they provide quick access to application functions directly related to the user interface context right under the mouse pointer when the menu button is clicked.
Web applications can trap the menu button click event using the ONCONTEXTMENU attribute. Despite currently it is a non-standard event, several browsers support it.
This class takes advantage of the ONCONTEXTMENU attribute to override the default context menu, and make appear a context menu defined by the PHP application.