doctype Property
.NET Framework 3.0
Gets an object that represents the document type declaration that is associated with the current document.
Syntax
[ oDocType = ] object.doctype
Possible Values
oDocType Object that receives the document type declaration. The property is read-only. The property has no default value.
Remarks
Internet Explorer 9. The methods and properties of doctype object are supported only for webpages that are displayed in IE9 Standards mode. In other document compatibility modes and earlier versions of Internet Explorer, the doctype object is null for HTML documents.
doctype was introduced in Microsoft Internet Explorer 6.
Standards Information
This property is defined in Document Object Model (DOM) Level 1.
Applies To
document, HTMLDocument Constructor
