A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/ja/docs/Web/API/ShadowRoot/activeElement below:

ShadowRoot: activeElement プãƒãƒ‘ティ - Web API

ShadowRoot: activeElement プロパティ

activeElement は ShadowRoot インターフェイスの読み取り専用プロパティで、シャドウツリー内でフォーカスを持っている要素を返します。

値

現在フォーカスを持っている Element、またはフォーカスを持っている要素がなければ null です。

例
let customElem = document.querySelector("my-shadow-dom-element");
let shadow = customElem.shadowRoot;
let focusedElem = shadow.activeElement;
仕様書 ブラウザーの互換性 関連情報

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3