Availability: |
| ||||
Inherits from: | Element object | ||||
JavaScript syntax: | IE | myDoctype = myDocument.all.tags("!")[0] | |||
IE | myDoctype = myDocument.all[anIndex] | ||||
IE | myDoctype = myDocument.getElementById(anElementID) | ||||
IE | myDoctype = myDocument.getElementsByName(aName)[anIndex] | ||||
IE | myDoctype = myDocument.doctype | ||||
IE | myDoctype = myDocument.getElementsByTagName("!")[anIndex] | ||||
HTML syntax: | <!DOCTYPE aDocumentDescription> | ||||
Argument list: | aDocumentDescription | A reference to a DTD for this document | |||
anIndex | A reference to an element in a collection | ||||
aName | An associative array reference | ||||
anElementID | The ID value of an Element object | ||||
Object properties: | accessKey, tabIndex | ||||
Event handlers: | onClick, onDblClick, onHelp, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp |
The MSIE implementation creates an object that has a constructor name that suggests its class is "!". This is very odd, and if you intend to do any work on object classes, then naming a class with what might be interpreted as a special character in the script source may lead to some problems.
This is really a Doctype object and is specified in the DOM standard as a <!DOCTYPE> element.
The recommended means of access is to retrieve the value of the doctype property of the document you want to operate on. This is normally document.doctype for the current window but in the case of multiple frames, layers or windows you may be referring to the doctype of a different document object.
This object appears to inherit all of the properties of an HTML element.
See also: | !.tabIndex, Document.doctype, Element object, Input.accessKey |
Property | JavaScript | JScript | N | IE | Opera | NES | ECMA | DOM | CSS | HTML | Notes |
---|---|---|---|---|---|---|---|---|---|---|---|
accessKey | ![]() | 5.0 ![]() | ![]() | 5.0 ![]() | ![]() | ![]() | ![]() | 1 ![]() | ![]() | ![]() | - |
tabIndex | ![]() | 5.0 ![]() | ![]() | 5.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
Event name | JavaScript | JScript | N | IE | Opera | NES | ECMA | DOM | CSS | HTML | Notes |
---|---|---|---|---|---|---|---|---|---|---|---|
onClick | ![]() | 5.0 ![]() | ![]() | 5.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 4.0 ![]() | ![]() |
onDblClick | ![]() | 5.0 ![]() | ![]() | 5.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 4.0 ![]() | ![]() |
onHelp | ![]() | 5.0 ![]() | ![]() | 5.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
onKeyDown | ![]() | 5.0 ![]() | ![]() | 5.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 4.0 ![]() | ![]() |
onKeyPress | ![]() | 5.0 ![]() | ![]() | 5.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 4.0 ![]() | ![]() |
onKeyUp | ![]() | 5.0 ![]() | ![]() | 5.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 4.0 ![]() | ![]() |
onMouseDown | ![]() | 5.0 ![]() | ![]() | 5.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 4.0 ![]() | ![]() |
onMouseMove | ![]() | 5.0 ![]() | ![]() | 5.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 4.0 ![]() | ![]() |
onMouseOut | ![]() | 5.0 ![]() | ![]() | 5.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 4.0 ![]() | ![]() |
onMouseOver | ![]() | 5.0 ![]() | ![]() | 5.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 4.0 ![]() | ![]() |
onMouseUp | ![]() | 5.0 ![]() | ![]() | 5.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 4.0 ![]() | ![]() |
Prev | Home | Next |
~ (Bitwise NOT) | Up | !.tabIndex |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |