0 out of 1 rated this helpful Rate this topic

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

 New for Windows Internet Explorer 9 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
Did you find this helpful?
(2000 characters remaining)
Community Content Add
Annotations FAQ