Easy Tutorial
❮ Prop Style Liststyleposition Prop Node Nodevalue ❯

onshow Event

Event Object

Example

Execute JavaScript when a <menu> element is displayed in the context menu:


Definition and Usage

The onshow event is triggered when a <menu> element is displayed in the context menu.


Browser Support

The numbers in the table specify the first browser version that supports the event.

Event
onshow Not supported Not supported 8.0 Not supported Not supported

Syntax

In HTML:

In JavaScript:

In JavaScript, using the addEventListener() method:

Note: The addEventListener() method is not supported in Internet Explorer 8 and earlier versions.


Bubbles: No
Cancelable: No
--- ---
Event type: Event
--- ---
Supported HTML tags: <menu>
--- ---

Related Pages

HTML Reference: HTML contextmenu Attribute

HTML Reference: HTML <menu> Tag

❮ Prop Style Liststyleposition Prop Node Nodevalue ❯