Area password attribute

Definition and usage

password Attribute set or return href attribute value Password part.

href Attribute specifies the destination of the link in the specified area.

In the URL,the password part is the password entered by the user. It is specified between the username and the hostname.

For example:https://billgates:bill234@www.example.com(billgates is the username,bill234 is the password)。

Tip:Use username attribute Set or return href attribute value Username part of the user.

Example

Example 1

Return the password part of the URL of the specific area in the image mapping:

var x = document.getElementById("venus").password;

Try it yourself

Example 2

Change the password part of the specific area in the image mapping:

document.getElementById("venus").password = "newPassword101";

Try it yourself

Syntax

Return password attribute:

areaObject.password

set password attribute:

areaObject.password = password

প্রতিষ্ঠান

মান বর্ণনা
password URL-এর পাসওয়ার্ড অংশ নির্ধারণ করে

প্রযুক্তিগত বিবরণ

ফলাফল: শব্দমালা মান, URL-এর পাসওয়ার্ড অংশকে প্রদর্শন করে

ব্রাউজার সমর্থন

চ্রোম এডজ ফায়ারফক্স সাফারি অপেরা
চ্রোম এডজ ফায়ারফক্স সাফারি অপেরা
সমর্থন করে সমর্থন করে না সমর্থন করে সমর্থন করে না সমর্থন করে