aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/notification/onshow/index.html
blob: 9701a3fc04582fbca0beaa464c8169c5a9fda216 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
title: Notification.onshow
slug: Web/API/notification/onshow
tags:
  - API
  - API Notifications
  - Notification
  - Notifications
  - Propriété
  - Reference
  - onshow
translation_of: Web/API/Notification/onshow
---
<p>{{APIRef("Web Notifications")}}{{AvailableInWorkers}}{{securecontext_header}}</p>

<p><span class="seoSummary">La propriété <strong><code>onshow</code></strong> de l'interface {{domxref ("Notification")}} définit un écouteur d'événements pour recevoir des événements {{domxref ("Element/show_event", "show")}}. Ces événements se produisent lorsqu'une {{domxref ("Notification")}} est affiché.</span></p>

<h2 id="Syntaxe">Syntaxe</h2>

<pre class="syntaxbox notranslate"><var>Notification</var>.onshow = function() { ... }
<var>Notification</var>.onshow = () =&gt; { ... }
</pre>

<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2>

<p>{{Compat("api.Notification.onshow")}}</p>

<h2 id="Voir_également">Voir également</h2>

<ul>
 <li>{{domxref("Notification")}}</li>
 <li><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API">Utilisation de l'API Notifications</a></li>
</ul>