ZVON
>
References
>
DOM2 Reference
Intro
/
Search
/
ZVON
DOM2 reference
>
Core:
Document
>
doctype
[Go to standard]
[Glossary]
[Help]
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