Click to Rate and Give Feedback
Properties
 doctype Property
doctype Property

Gets 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

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
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker