Input Password size attribute
Definition and Usage
size
Set or return the size attribute of the password field.
The HTML size attribute specifies the width of the password field (in number of characters).
The default value is 20.
Tip:To set or return the maximum number of allowed characters in the password field, use maxLength attribute.
See also:
HTML Reference Manual:HTML <input> size বৈশিষ্ট্য
Example
Example 1
Change the width of the password field:
document.getElementById("myPsw").size = "50";
Example 2
Get the width of the password field:
var x = document.getElementById("myPsw").size;
Syntax
Return size attribute:
passwordObject.size
set size attribute:
passwordObject.size = number
প্রতিভূতি
মান | বর্ণনা |
---|---|
number | পাসওয়ার্ড ফিল্ডের প্রস্থটির পরিমাণ চিহ্নিত করে, অক্ষরের ইউনিটে।ডিফল্ট মান 20। |
প্রযুক্তিগত বিবরণ
ফলাফল | মানসংখ্যা,পাসওয়ার্ড ফিল্ডের প্রস্থটির পরিমাণ চিহ্নিত করে, অক্ষরের ইউনিটে। |
---|
ব্রাউজার সমর্থন
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
সমর্থন | 10.0 | সমর্থন | সমর্থন | সমর্থন |