YouTip LogoYouTip

Prop Search Form

# Input Search form Property [![Image 8: Input Search Object Reference](#) Input Search Object](#) ## Example Returns the id of the form that contains the element: ```javascript var x = document.getElementById("mySearch").form.id; The output of _x_ will be: myForm [Try it Yourself Β»](#) * * * ## Definition and Usage The form property returns a reference to the form that contains the search field. On success, this property returns a form object. **Note:** This property is read-only. * * * ## Browser Support ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) The form property is supported by all major browsers. * * * ## Syntax _searchObject_.form ## Technical Details | Return Value: | A reference to the form element that contains the search field. Returns null if the search field is not in a form. | | --- | * * Input Search Object](#) [](#)(#) (#)[](#) [Volcengine Coding Plan supports Doubao, GLM, DeepSeek, Kimi, MiniMax and other mainstream large models, officially supplied, stable and reliable. Configuration Guide Β₯9.9/month Subscribe Now](https://maas.xfyun.cn/modelSquare?ch=maas_lm_l2E)
← Prop Search MaxlengthProp Search Disabled β†’