diff options
Diffstat (limited to 'files/ja/web/api/notification/onclose')
-rw-r--r-- | files/ja/web/api/notification/onclose/index.html | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/files/ja/web/api/notification/onclose/index.html b/files/ja/web/api/notification/onclose/index.html new file mode 100644 index 0000000000..302dd6ab11 --- /dev/null +++ b/files/ja/web/api/notification/onclose/index.html @@ -0,0 +1,37 @@ +--- +title: Notification.onclose +slug: Web/API/Notification/onclose +tags: + - API + - DOM + - Notification + - Notifications + - Notifications API + - Property + - Reference + - onclose + - プロパティ + - 通知 +translation_of: Web/API/Notification/onclose +--- +<p>{{APIRef("Web Notifications")}}{{AvailableInWorkers}}{{securecontext_header}}</p> + +<p><strong><code>onclose</code></strong> は {{domxref("Notification")}} インターフェイスのプロパティで、 {{domxref("HTMLDialogElement/close_event", "close")}} イベントを受信するイベントリスナーを指定します。これらのイベントは {{domxref("Notification")}} が閉じるときに発生します。</p> + +<h2 id="Syntax" name="Syntax">構文</h2> + +<pre class="syntaxbox notranslate"><var>Notification</var>.onclose = function() { ... }; +</pre> + +<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2> + +<div class="hidden">このページの互換性一覧表は構造化データから生成されています。データに協力していただけるのであれば、 <a class="external" href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックアウトしてプルリクエストを送信してください。</div> + +<p>{{Compat("api.Notification.onclose")}}</p> + +<h2 id="See_also" name="See_also">関連情報</h2> + +<ul> + <li>{{domxref("Notification")}}</li> + <li><a href="/ja/docs/Web/API/Notifications_API/Using_the_Notifications_API">通知 API の使用</a></li> +</ul> |