From e9eae2d4257e8e561a6234c9a0baf1bd1166f707 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Sun, 9 Jan 2022 16:15:16 +0900 Subject: FocusEvent 関係のインターフェイス・イベントの記事を変換準備 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/api/focusevent/focusevent/index.md | 55 +++++++++++++++++++ files/ja/web/api/focusevent/index.html | 72 ------------------------- 2 files changed, 55 insertions(+), 72 deletions(-) create mode 100644 files/ja/web/api/focusevent/focusevent/index.md delete mode 100644 files/ja/web/api/focusevent/index.html (limited to 'files/ja/web/api/focusevent') diff --git a/files/ja/web/api/focusevent/focusevent/index.md b/files/ja/web/api/focusevent/focusevent/index.md new file mode 100644 index 0000000000..353cf01b5f --- /dev/null +++ b/files/ja/web/api/focusevent/focusevent/index.md @@ -0,0 +1,55 @@ +--- +title: FocusEvent() +slug: Web/API/FocusEvent/FocusEvent +tags: + - API + - Constructor + - Event + - FocusEvent + - Reference +browser-compat: api.FocusEvent.FocusEvent +--- +{{APIRef("DOM Events")}} + +The **`FocusEvent()`** constructor returns a newly created +{{domxref("FocusEvent")}} object with an optional {{domxref("EventTarget")}}. When the +event has both a source and a destination, the `relatedTarget` value must be +set to the other target. + +## Syntax + +```js +var focusEvent = new FocusEvent(typeArg[, focusEventInit]); +``` + +### Properties + +_The `FocusEvent()` constructor also inherits arguments from +{{domxref("UIEvent.UIEvent", "UIEvent()")}} and from {{domxref("Event.Event", + "Event()")}}._ + +- `typeArg` + - : Is a {{domxref("DOMString")}} representing the name of the event. +- `focusEventInit` {{optional_inline}} + + - : Is a `FocusEventInit` dictionary, having the following fields: + + - `"relatedTarget"`, optional and defaulting to `null`, is + an {{domxref("EventTarget")}} representing the secondary target of a + {{domxref("FocusEvent")}}. + + > **Note:** The `FocusEventInit` dictionary also accepts fields from the + > {{domxref("UIEvent.UIEvent", "UIEventInit")}} and {{domxref("Event.Event", + "EventInit")}} dictionaries. + +## Specifications + +{{Specifications}} + +## Browser compatibility + +{{Compat}} + +## See also + +- The {{domxref("FocusEvent")}} interface it belongs to. diff --git a/files/ja/web/api/focusevent/index.html b/files/ja/web/api/focusevent/index.html deleted file mode 100644 index 1b174b5594..0000000000 --- a/files/ja/web/api/focusevent/index.html +++ /dev/null @@ -1,72 +0,0 @@ ---- -title: FocusEvent -slug: Web/API/FocusEvent -tags: - - API - - DOM - - DOM Events - - Event - - Experimental - - Reference - - イベント -translation_of: Web/API/FocusEvent ---- -

{{APIRef("DOM Events")}}

- -

FocusEvent はフォーカスに関するイベント、例えば {{domxref("Element/focus_event", "focus")}}, {{domxref("Element/blur_event", "blur")}}, {{domxref("Element/focusin_event", "focusin")}}, {{domxref("Element/focusout_event", "focusout")}} などを表します。

- -

{{InheritanceDiagram}}

- -

コンストラクター

- -
-
{{domxref("FocusEvent.FocusEvent", "FocusEvent()")}}
-
指定した引数に基づいて、FocusEvent イベントを作成します。
-
- -

プロパティ

- -

このインターフェイスは親である {{domxref("UIEvent")}} および間接的に {{domxref("Event")}} から、プロパティを継承しています

- -
-
{{domxref("FocusEvent.relatedTarget")}}
-
このイベントのセカンダリターゲットを表す {{domxref("EventTarget")}} です。一部の場合 (タブ移動でページに出入りするときなど) では、セキュリティ上の理由からこのプロパティが null に設定されます。
-
- -

メソッド

- -

このインターフェイスには固有のメソッドはありません。親である {{domxref("UIEvent")}} および間接的に {{domxref("Event")}} から、メソッドを継承しています。

- -

仕様書

- - - - - - - - - - - - - - - - - - - - - -
仕様書策定状況コメント
{{SpecName('UI Events', '#interface-focusevent', 'FocusEvent')}}{{Spec2('UI Events')}}
{{SpecName('DOM3 Events', '#interface-focusevent', 'FocusEvent')}}{{Spec2('DOM3 Events')}}初回定義
- -

ブラウザーの互換性

- -

{{Compat("api.FocusEvent")}}

- -

関連情報

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