Obiekt legendy HTML DOM
Obiekt legendy
Obiekt Legend reprezentuje element HTML <legend>.
Uzyskaj dostęp do obiektu legendy
Możesz uzyskać dostęp do elementu <legend> za pomocą getElementById():
Przykład
var x = document.getElementById("myLegend");
Utwórz obiekt legendy
Możesz utworzyć element <legend> za pomocą metody document.createElement():
Przykład
var x = document.createElement("LEGEND");
Właściwości obiektu legendy
Property | Description |
---|---|
form | Returns a reference to the form that contains the legend |
Standardowe właściwości i zdarzenia
Obiekt Legend obsługuje również standardowe właściwości i zdarzenia .
Powiązane strony
Odniesienie HTML: tag HTML <zestaw pól>
Odniesienie HTML: tag HTML <legend>