A RetroSearch Logo

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

Search Query:

Showing content from https://developer.cdn.mozilla.net/ja/docs/Web/API/HTMLAnchorElement/text below:

HTMLAnchorElement: text プãƒãƒ‘ティ - Web API

HTMLAnchorElement: text プロパティ

Baseline Widely available

text は HTMLAnchorElement のプロパティで、要素内のテキストを表します。 このプロパティは Node.textContent と同じ情報を表します。

値

文字列です。

例
<a id="exampleLink" href="https://example.com">Example Link</a>
<p class="text"></p>
#exampleLink {
  font-size: 1.5rem;
}
const anchorElement = document.getElementById("exampleLink");
const pTag = document.querySelector(".text");
pTag.textContent = `Text property: ${anchorElement.text}`;
結果 仕様書 ブラウザーの互換性 関連情報

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.4