onshow event Event Object Example When Execute JavaScript when the element's context menu is displayed: Right-click inside this box to see the context menu! Right-click the yellow box area with the mouse to view the context menu! Try it » Definition and Usage The onshow event is triggered when the element's context menu is displayed. Browser support The numbers in the table indicate the version number of the first browser to support the event. Events onshow Not supported Not supported 8.0 Not supported Not supported Syntax In HTML: < element onshow=" myScript ">Try it In JavaScript: object .onshow=function(){ myScript }; Try it In JavaScript, use the addEventListener() method: object .addEventListener("show", myScript ); Try it Note: Internet Explorer 8 and earlier IE versions do not support addEventListener() method. Technical Details Does it support bubbling: No Is it cancelable: No Event type: Event Supported HTML tags: Related pages HTML Reference Manual: HTML contextmenu attribute HTML Reference Manual: HTML tag Event Object