HTML DOM DFN Object


DFN Object

The DFN object represents an HTML <dfn> element.

Access a DFN Object

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

var x = document.getElementById("myDFN"); Try it

Create a DFN Object

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

var x = document.createElement("DFN"); Try it

Standard Properties and Events

The DFN object also supports the standard properties and events.


Related Pages

HTML reference: HTML <dfn> tag