Availability: |
| ||||
JavaScript syntax: | N | myDocumentEvent = myDocument | |||
Object methods: | createEvent() |
This is not an object class that exists on its own. Rather it is an extension to the underlying Document object. It could be considered to be a sub-class of Document that inherits all the properties and methods of the Document class. Objects of this type are likely to report that they belong to the Document class rather than the DocumentEvent class although that may be implementation dependent.
The syntax listing shows that a DocumentEvent object is equal to a Document object although as is the case with Document, you cannot be certain which one of several possible documents you may have been passed if several windows, frames or layers are in use at once.
Method | JavaScript | JScript | N | IE | Opera | NES | ECMA | DOM | CSS | HTML | Notes |
---|---|---|---|---|---|---|---|---|---|---|---|
createEvent() | 1.5 ![]() | ![]() | 6.0 ![]() | ![]() | ![]() | ![]() | ![]() | 2 ![]() | ![]() | ![]() | - |
Prev | Home | Next |
Document.writeln() | Up | DocumentEvent.createEvent() |
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. |