The oncontextmenu EventThe oncontextmenu event occurs when the user clicks the right mouse button in the client area, opening the context menu. You can find the support for this event in Table 6.62. Table 6.62. The oncontextmenu Event
This event occurs when the user clicks an object with the secondary mouse button (usually the right button), which causes the browser to display a context menu of commands. Tip You can cancel the normal action connected to a right-click in the Internet Explorer by returning a value of false from the oncontextmenu event handler, or by setting window.event.returnValue to false in the event handler. Doing so can stop the user from downloading images from your web page ( assuming the user has not deactivated scripting in the browser). |