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():

Example

var x = document.getElementById(“myDFN”);

Try it Yourself »

Create a DFN Object

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

Example

var x = document.createElement(“DFN”);

Try it Yourself »

Standard Properties and Events

The Abbreviation object supports the standard properties and events.

Post Author: Zahid Farid