HTMLAreaElement: password プロパティ

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

HTMLAreaElement.password プロパティは、ドメイン名の前で指定されたパスワードが入った文字列です。

先に username プロパティを設定せずに設定しようとすると、暗黙のうちに失敗します。

文字列です。

js
// <area id="myArea" href="https://anonymous:flabada@developer.mozilla.org/ja/docs/HTMLAreaElement"> 要素が文書にあったとします
const area = document.getElementByID("myArea");
area.password; // 'flabada' を返す

仕様書

Specification
HTML
# dom-hyperlink-password-dev

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
password

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

関連情報