HTMLHyperlinkElementUtils.password
プロパティは、ドメイン名の前に指定されたパスワードを含む USVString
です。
最初に username
プロパティを設定せずに設定しようとすると、静かに失敗します。
構文
string = object.password; object.password = string;
例
// <a id="myAnchor" href="https://anonymous:flabada@developer.mozilla.org/en-US/docs/HTMLHyperlinkElementUtils.username"> 要素がドキュメントにあるとします
var anchor = document.getElementByID("myAnchor");
var result = anchor.password; // 戻り値: 'flabada'
仕様
仕様 | 状態 | コメント |
---|---|---|
HTML Living Standard HTMLHyperlinkElementUtils.password の定義 |
現行の標準 | 初期定義 |
ブラウザーの互換性
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
ミックスインに属します。