Javascript Reference
Categories: DocumentType

javascript DocumentType name

@March 15, 2008, 1:22 a.m.
nameFirefox/Netscape/NN 6 IE 5(Mac) Chrome/Safari/DOM 1  

Read-only  

Returns a string value of the name portion of the element. The name is the first word that follows the DOCTYPE element's tag name. In the context of this book's subject, all HTML and XHTML documents show this value to be html. Note that although this object and property are implemented in IE 5/Macintosh, that browser returns the entire inner string value of the DOCTYPE element, starting with the html name.

 
Value

String.

 
Default

html


Powered by Linode.