WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

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");

Create a DFN Object

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

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