all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize

doctype property

Gets an object that represents the document type declaration that is associated with the current document.

Syntax

JavaScript

p = object.doctype

 

Property values

Type: Object

the document type declaration.

Standards information

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.

Windows 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 Windows Internet Explorer, the doctype object is null for HTML documents.

doctype was introduced in Microsoft Internet Explorer 6.

See also

document

 

 

Show:
© 2014 Microsoft