Input Password pattern attribute

Definition and Usage

pattern attribute sets or returns the value of the pattern attribute of the password field.

The HTML pattern attribute specifies a regular expression to check the value of the password field.

Tip:Please use global HTML title attribute or DOM title Use properties to describe the pattern to help users.

See also:

JavaScript Tutorial:Regular Expression

JavaScript Reference Manual:RegExp Object

HTML Reference Manual: HTML <input> pattern attribute

Example

Get the pattern attribute value of the password field:

var x = document.getElementById("myPsw").pattern;

Try it yourself

Syntax

return pattern attribute:

passwordObject.pattern

set pattern attribute:

passwordObject.pattern = regexp

প্রতিশব্দ মান

মান বর্ণনা
regexp পাসওয়ার্ড ফিল্ডের মান পরীক্ষা করার জন্য রেগুলার এক্সপ্রেশন নির্দিষ্ট করুন。

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

ফলাফল: শব্দচিহ্ন, যা রেগুলার এক্সপ্রেশনকে নির্দেশ করে。

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

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