Properties


doctype Property

Gets the document type declaration associated with the current document.

Syntax

[ oDocType = ] object.doctype

Possible Values

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

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

Remarks

doctype was introduced in Microsoft Internet Explorer 6.

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 World Wide Web link.

Applies To

document, HTMLDocument Constructor
Tags :


Page view tracker