Notification.title
注: この機能は Web Worker 内で利用可能です。
安全なコンテキスト用
この機能は一部またはすべての対応しているブラウザーにおいて、安全なコンテキスト (HTTPS) でのみ利用できます。
title
は Notification
インターフェイスの読取専用プロパティで、 Notification()
コンストラクターの title
引数で指定された通知のタイトルを示します。
構文
var title = Notification.title;
値
DOMString
です。
例
function spawnNotification(theBody,theIcon,theTitle) {
var options = {
body: theBody,
icon: theIcon
}
var n = new Notification(theTitle,options);
console.log(n.title)
}
仕様書
仕様書 | 状態 | 備考 |
---|---|---|
Notifications API title の定義 |
現行の標準 | Living standard |
ブラウザーの互換性
BCD tables only load in the browser