HTMLHyperlinkElementUtils.username
プロパティは、ドメイン名の前に指定されたユーザー名を含む USVString
です。
構文
string = object.username; object.username = string;
例
// <a id="myAnchor" href="https://anonymous:flabada@developer.mozilla.org/en-US/docs/HTMLHyperlinkElementUtils.username"> 要素がドキュメントにあるとします
var anchor = document.getElementByID("myAnchor");
var result = anchor.username; // 戻り値: 'anonymous'
仕様
仕様 | 状態 | コメント |
---|---|---|
HTML Living Standard HTMLHyperlinkElementUtils.username の定義 |
現行の標準 | 初期定義 |
ブラウザーの互換性
BCD tables only load in the browser
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
関連情報
HTMLHyperlinkElementUtils
ミックスインに属します。