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 attributes 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 پشتیبانی پشتیبانی پشتیبانی