Execute a JavaScript when a <menu> element is shown as a context menu:
The onshow attribute fires when a <menu> element is shown as a context menu.
The numbers in the table specify the first browser version that fully supports the event attribute.
Event Attribute | |||||
---|---|---|---|---|---|
onshow | Not supported | Not supported | 8.0 | Not supported | Not supported |
The onshow attribute is new in HTML5.
Value | Description |
---|---|
script | The script to be run on onshow |
Supported HTML tags: | <menu> |
---|
HTML DOM reference: onshow event