YouTip LogoYouTip

Prop Legend Form

# Legend form Property [![Image 8: Label Object Reference](#) Label Object](#) ## Example Return the id of the form containing the element: var x = document.getElementById("myLegend").form.id; The _x_ output will be: myForm [Try it yourself Β»](#) * * * ## Definition and Usage The form property returns a reference to the form that contains the legend. If successful, 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 in all major browsers. * * * ## Syntax _legendObject_.form ## Technical Details | Return Value: | A reference to the form that contains the legend. Returns null if the legend is not inside a form. | | --- | * * Label Object](#)
← Dom Obj LiDom Obj Legend β†’