# dhtmlxmenu:event_onaftercontextmenu [DHX documentation]

DHTMLX Docs & Samples Explorer

Index
dhtmlxmenu
Event Handling

## onAfterContextMenu Event

This event occurs after the moment when a contextual menu appears by a right mouse click. onAfterContextMenu event can call a user-defined handler (if there is any) and pass the following parameter:

- zone id - id of the contextual menu zone.

            menu.attachEvent("onAfterContextMenu", function(zoneId){});