Form Legend Attribute

Paglilinaw at Paggamit

form Ang katangian na ito ay ibabalik ang reperensya ng porma na naglalaman ng legend.

Ang katangian na ito ay ibabalik ang objekto ng porma kapag matagumpay.

Komentaryo:Ang katangian na ito ay bago lamang na basa.

Bilang karagdagan:

HTML Reference Manual:HTML <legend> Tag

Mga halimbawa

Iba't ibang id ng porma na naglalaman ng elemento <legend>:

var x = document.getElementById("myLegend").form.id;

Try It Yourself

Syntax

legendObject.form

Technical Details

Return Value:

Reference to the form element containing legend.

If legend is not in the form, it returns null.

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support