From e7754b8a0961a10a33c34819dbded4147c8aa1cc Mon Sep 17 00:00:00 2001 From: MDN Date: Tue, 15 Feb 2022 01:01:01 +0000 Subject: [CRON] sync translated content --- .../api/broadcastchannel/message_event/index.html | 65 ++++++++++++++++++++++ .../broadcastchannel/messageerror_event/index.html | 53 ++++++++++++++++++ 2 files changed, 118 insertions(+) create mode 100644 files/ja/conflicting/web/api/broadcastchannel/message_event/index.html create mode 100644 files/ja/conflicting/web/api/broadcastchannel/messageerror_event/index.html (limited to 'files/ja/conflicting') diff --git a/files/ja/conflicting/web/api/broadcastchannel/message_event/index.html b/files/ja/conflicting/web/api/broadcastchannel/message_event/index.html new file mode 100644 index 0000000000..7a13d720bb --- /dev/null +++ b/files/ja/conflicting/web/api/broadcastchannel/message_event/index.html @@ -0,0 +1,65 @@ +--- +title: BroadcastChannel.onmessage +slug: conflicting/Web/API/BroadcastChannel/message_event +tags: + - API + - Broadcast Channel API + - BroadcastChannel + - Event Handler + - Experimental + - HTML API + - Property + - Reference +translation_of: Web/API/BroadcastChannel/onmessage +original_slug: Web/API/BroadcastChannel/onmessage +--- +

{{APIRef("BroadCastChannel API")}}

+ +

BroadcastChannel.onmessage イベントハンドラは、{{domxref("MessageEvent")}} 型の {{event("message")}} イベントがこの {{domxref("BroadcastChannel")}} によって受信されたときに実行する関数を指定するプロパティです。 このようなイベントは、チャネルに放送されるメッセージとともにブラウザーによって送信されます。

+ +

{{AvailableInWorkers}}

+ +

構文

+ +
channel.onmessage = function;
+
+ +

Values

+ + + +

+ +
bc.onmessage = function(ev) { console.log('message event received!'); };
+
+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('HTML WHATWG', "comms.html#handler-broadcastchannel-onmessage", "BroadcastChannel.onmessage")}}{{Spec2('HTML WHATWG')}}Initial definition.
+ +

ブラウザーの互換性

+ + + +

{{Compat("api.BroadcastChannel.onmessage")}}

+ +

関連情報

+ + diff --git a/files/ja/conflicting/web/api/broadcastchannel/messageerror_event/index.html b/files/ja/conflicting/web/api/broadcastchannel/messageerror_event/index.html new file mode 100644 index 0000000000..924a835960 --- /dev/null +++ b/files/ja/conflicting/web/api/broadcastchannel/messageerror_event/index.html @@ -0,0 +1,53 @@ +--- +title: BroadcastChannel.onmessageerror +slug: conflicting/Web/API/BroadcastChannel/messageerror_event +tags: + - API + - BroadcastChannel + - Event Handler + - Property + - Reference + - onmessageerror +translation_of: Web/API/BroadcastChannel/onmessageerror +original_slug: Web/API/BroadcastChannel/onmessageerror +--- +
{{APIRef("HTML DOM")}}
+ +

{{domxref("BroadcastChannel")}} インタフェース の onmessageerror イベントハンドラは {{domxref("EventListener")}} であり、messageerror 型の {{domxref("MessageEvent")}} が BroadcastChannel インスタンスで発生するたびに、つまり{{glossary("Deserialization", "逆シリアル化")}}できないメッセージを受信すると呼び出されます。

+ +

{{AvailableInWorkers}}

+ +

構文

+ +
bc.onmessageerror = function() { ... };
+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('HTML WHATWG', '#handler-broadcastchannel-onmessageerror', 'onmessageerror')}}{{Spec2('HTML WHATWG')}} 
+ +

ブラウザーの互換性

+ +
+ + +

{{Compat("api.BroadcastChannel.onmessageerror")}}

+
+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf