YouTip LogoYouTip

Event Onshow

# onshow Event [![Image 3: Event Object Reference](#) Event Object](#) ## Example Execute JavaScript when the element is shown as a context menu:

Right-click inside this box to see the context menu!

Right-click the yellow box area to view the context menu!

[Try it Β»](#) * * * ## Definition and Usage The onshow event occurs when a element is shown as a context menu. * * * ## Browser Support The numbers in the table specify the first browser version that fully supports the event. | Event | | | | | | | --- | --- | --- | --- | --- | --- | | onshow | Not supported | Not supported | 8.0 | Not supported | Not supported | * * * ## Syntax In HTML: (#) In JavaScript: _object_.onshow=function(){_myScript_};(#) In JavaScript, using the addEventListener() method: _object_.addEventListener("show", _myScript_);(#) **Note:** Internet Explorer 8 and earlier IE versions do not support the [addEventListener()](#) method. * * * Technical Details | Bubbles: | No | | --- | | Cancelable: | No | | Event type: | Event | | Supported HTML tags: | | * * * ## Related Pages HTML Reference: (#) HTML Reference: [HTML tag](#) * * Event Object](#)
← Cpp Examples Cout HelloworldPython Quiz Ifelse β†’