--- 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 = () => { ... } </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="/fr/docs/Web/API/Notifications_API/Using_the_Notifications_API">Utilisation de l'API Notifications</a></li> </ul>