Obiekt HTML DOM Rysunek
Rysunek Obiekt
Obiekt Figure reprezentuje element HTML <figure>.
Uzyskaj dostęp do obiektu figury
Możesz uzyskać dostęp do elementu <figure> za pomocą getElementById():
Przykład
var x = document.getElementById("myFigure");
Utwórz obiekt figury
Możesz utworzyć element <figure> za pomocą metody document.createElement():
Przykład
var x = document.createElement("FIGURE");
Standardowe właściwości i zdarzenia
Obiekt Figure obsługuje również standardowe właściwości i zdarzenia .
Powiązane strony
Odniesienie HTML: tag HTML <figure>