HTML DOM Input Text type attribute
Example
See what kind of text field form element type is:
var x = document.getElementById ( "myText") type.;
x The output is:
text
try it"
Definition and Usage
type property returns the type of form element text field.
For a text field, this property always returns "text".
Browser Support
All major browsers support attribute type
grammar
textObject .type
return value
Types of | description |
---|---|
String | Form elements of type text field |
Input Text Object