HTML DOM Input Search type property
Examples
Back to search form field element types:
var x = document.getElementById ( "mySearch") type.;
x output values:
search
try it"
Definition and Usage
form type type type property returns the search field.
For the search field, the property usually returns "search".
Browser Support
All major browsers support attribute type
grammar
searchObject .type
technical details
return value: | String representing the search field type of form elements |
---|
Input Search Object