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/toString below:

HTMLAnchorElement: toString() メソッド - Web API

HTMLAnchorElement: toString() メソッド

Baseline Widely available

HTMLAnchorElement.toString() は文字列化メソッドで、 URL 全体の入った文字列を返します。 これは、 HTMLAnchorElement.href の読み取り専用バージョンです。

構文 引数

なし。

返値

この要素の完全な URL の入った文字列です。

例 アンカー要素で toString を呼び出す
// <a id="myAnchor" href="/ja/docs/HTMLAnchorElement"> 要素が文書にあったとします
const anchor = document.getElementById("myAnchor");
anchor.toString(); // 'https://developer.mozilla.org/ja/docs/HTMLAnchorElement' を返す
仕様書 ブラウザーの互換性 関連情報

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