Latest web development tutorials

HTML DOM Input Search type property

Input Search Object Reference Input Search Object

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

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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 Reference Input Search Object