HTMLHyperlinkElementUtils.pathname
HTMLHyperlinkElementUtils.pathname
プロパティは、最初の '/'
とその後に続く URL のパス(または、パスがない場合は空の文字列)を含む USVString
です。
構文
string = object.pathname; object.pathname = string;
例
// <a id="myAnchor" href="https://developer.mozilla.org/en-US/docs/HTMLHyperlinkElementUtils.pathname"> 要素がドキュメントにあるとします
var anchor = document.getElementById("myAnchor");
var result = anchor.pathname; // 戻り値: '/en-US/docs/HTMLHyperlinkElementUtils.pathname'
仕様
仕様 | 状態 | コメント |
---|---|---|
HTML Living Standard HTMLHyperlinkElementUtils.pathname の定義 |
現行の標準 | 初期定義 |
ブラウザーの互換性
No compatibility data found for api.HTMLHyperlinkElementUtils.pathname
.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.
関連情報
HTMLHyperlinkElementUtils
ミックスインに属します。