This event occurs when a request is made for a context menu -- usually a right click, depending on the platform -- and is activated before the menu appears. oncontextmenu is similar to the oncreate and onpopupshowing events.