%version; %links; %parts; ]> &options;
Document Object Model (DOM) Level 2 Events Specification 1.0 &doc.prefix;-&doc.date; W3C Recommendation &date.day; &date.month; &date.year; &this.url; &ps.loc; &pdf.loc; &txt.loc; &zip.loc; &latest.url; &prev.locs; Tom Pixley Netscape Communications Corp.

This specification defines the Document Object Model Level 2 Events, a platform- and language-neutral interface that gives to programs and scripts a generic event system. The Document Object Model Level 2 Events builds on the Document Object Model Level 2 Core and on Document Object Model Level 2 Views .

&status;

Created in electronic form.

English

$Revision$

&toc; ©right; &events; IDL Definitions

This appendix contains the complete OMG IDL for the Level 2 Document Object Model Events definitions.

The IDL files are also available as: &this.url;/idl.zip

Java Language Binding

This appendix contains the complete Java bindings for the Level 2 Document Object Model Events.

The Java files are also available as &this.url;/java-binding.zip

ECMAScript Language Binding

This appendix contains the complete ECMAScript binding for the Level 2 Document Object Model Events definitions.

Exceptions handling is only supported by ECMAScript implementation conformant with the Standard ECMA-262 3rd. Edition ().

The following example will add an ECMAScript based EventListener to the Node 'exampleNode':

// Given the Node 'exampleNode' // Define the EventListener function function clickHandler(evt) { // Function contents } // The following line will add a non-capturing 'click' listener // to 'exampleNode'. exampleNode.addEventListener("click", clickHandler, false);
&contributors; &glossary; &references; &index;