doctype Property

Internet Development Index

Retrieves the document type declaration associated with the current document.

Syntax

[ oDocType = ] document.doctype

Possible Values

oDocType Object that receives the document type declaration.
NULLDefault. Return value for HTML documents.

The property is read-only. The property has a default value of NULL.

Remarks

For HTML documents the doctype property returns null as defined by the World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 standard.

Standards Information

This property is defined in W3C DOM Level 1 Non-Microsoft link.

Applies To

document