HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Input Email Object : Change the width of an email field
The size property sets or returns the value of the size attribute of an email field.
The size attribute specifies the width of an email field (in number of characters).
The default value is 20.
Property | |||||
---|---|---|---|---|---|
size | Yes | 10.0 | Yes | Yes | Yes |
Return the size property:
Set the size property:
Value | Description |
---|---|
number | Specifies the width of the email field, in number of characters. Default value is 20 |
Return Value: | A Number, representing the width of the email field, in number of characters |
---|
Display the width of an email field (in number of characters):
var x = document.getElementById("myEmail").size;
HTML reference: HTML <input> size attribute
❮ Input Email Object