Mozilla.com

  1. MDC
  2. Main Page
  3. DOM
  4. document.doctype

« Gecko DOM Reference

Summary

Returns the Document Type Declaration (DTD) associated with current document. The returned object implements DocumentType interface.

Syntax

doctype = document.doctype;

doctype is a read-only property.

Notes

The property returns null if there is no DTD associated with the current document.

DOM level 2 doesn't support editing the document type declaration.

Languages

Page last modified 17:42, 21 Sep 2006 by George3

Files (0)