Input Search form Property
Definition and Usage
form
The property returns a reference to the form containing the search field.
This property returns the form object on success.
Note:This property is read-only.
Example
Return the id of the form containing the <input type="search"> element:
var x = document.getElementById("mySearch").form.id;
Syntaks
searchObject.form
Tekniske detaljer
Returværdi: |
En reference til formularelementet, der indeholder søgefeltet. Hvis søgefeltet ikke findes i formularen, returneres |
---|
Browser understøttelse
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |