HTML DOM Figure Object


Figure Object

The Figure object represents an HTML <figure> element.

Access a Figure Object

You can access a <figure> element by using getElementById():

Example

var x = document.getElementById("myFigure");
Try it Yourself »

Create a Figure Object

You can create a <figure> element by using the document.createElement() method:

Example

var x = document.createElement("FIGURE");
Try it Yourself »

Standard Properties and Events

The Figure object also supports the standard properties and events.


Related Pages

HTML reference: HTML <figure> tag


Copyright 1999-2023 by Refsnes Data. All Rights Reserved.