Skip to content

Commit

Permalink
Update Element.show_event to conform to new events template (#18167)
Browse files Browse the repository at this point in the history
* Update Element.show_event to conform to new events template

* Remove broken link
  • Loading branch information
queengooborg authored Jul 10, 2022
1 parent bf6cbfe commit 00d5f73
Showing 1 changed file with 15 additions and 26 deletions.
41 changes: 15 additions & 26 deletions files/en-us/web/api/element/show_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,21 @@ browser-compat: api.Element.show_event

The **`show`** event is fired when a {{domxref("Element/contextmenu_event", "contextmenu")}} event was fired on/bubbled to an element that has a [`contextmenu` attribute](/en-US/docs/Web/HTML/Global_attributes/contextmenu).

<table class="properties">
<tbody>
<tr>
<th scope="row">Bubbles</th>
<td>No</td>
</tr>
<tr>
<th scope="row">Cancelable</th>
<td>No</td>
</tr>
<tr>
<th scope="row">Interface</th>
<td>{{domxref("Event")}}</td>
</tr>
<tr>
<th scope="row">Event handler property</th>
<td>
{{domxref("GlobalEventHandlers.onshow", "onshow")}}
</td>
</tr>
</tbody>
</table>
This event is not cancelable and does not bubble.

## Syntax

Use the event name in methods like {{domxref("EventTarget.addEventListener", "addEventListener()")}}, or set an event handler property.

```js
addEventListener('show', (event) => {});

onshow = (event) => { };
```

## Event type

A generic {{domxref("Event")}}.

## Examples

Expand All @@ -59,7 +52,3 @@ This event is not on any standards track.
## Browser compatibility

{{Compat}}

## See also

- {{domxref("GlobalEventHandlers.onshow", "onshow")}}

0 comments on commit 00d5f73

Please sign in to comment.