ZVON > References > DOM2 Reference

doctype (attribute )

Owning interface and usage:  
Document.doctype

Member of these other interfaces:  
none

Readonly:   yes

Type:   DocumentType

Description:  
Stores the Document Type Declaration associated with document (or null if the DTD was not specified).

Note:  
doctype cannot be altered in any way, including through the use of methods inherited from the Node interface.


Example:
JavaScript:
  var output = document.doctype;
Output:
desired your browser
null