Input Email size Attribute
Definition and Usage
size
Set or return the value of the size attribute of the email field.
The HTML size attribute specifies the width of the email 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
Set the email field as a required part of the form submission:
document.getElementById("myEmail").size = "50";
Example 2
Display the width of the email field (in number of characters):
var x = document.getElementById("myEmail").size;
Syntax
return size attribute:
emailObject.size
set size attribute:
emailObject.size = number
বৈশিষ্ট্য মান
মান | বর্ণনা |
---|---|
number | ইমেইল ফিল্ডের অক্ষর সংখ্যা নির্দেশ করে প্রস্থ।ডিফল্ট মান 20। |
প্রযুক্তিগত বিবরণ
ফলাফল: | মান, ইমেইল ফিল্ডের প্রস্থ নির্দেশ করে, অক্ষর ইউনিটে |
---|
ব্রাউজার সমর্থন
টেবিলের সংখ্যাটি প্রথম সংকেতকারী ব্রাউজারের সংস্করণকে নির্দেশ করে
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
সমর্থন | 10.0 | সমর্থন | সমর্থন | সমর্থন |