Input Search type eigenschap
Definitie en gebruik
type
De eigenschap retourneert welk type formulierelement het zoekveld is.
Voor het zoekveld, deze eigenschap retourneert altijd "search
".
Example
Returns which type of form element the search field belongs to:
var x = document.getElementById("mySearch").type;
Syntax
searchObject.type
Technical details
Return value: | A string value that represents the type of form element where the search field is located. |
---|
Browser support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |