<?xml version="1.0" ?> <!-- $Id: dom-spec.xml 225913 2001-06-01 11:15:37Z dims $ --> <!DOCTYPE spec PUBLIC "-//W3C//DTD Specification V2.1-Based DOM//EN" "../../../pubtext/xmlspec-v21-dom.dtd" [ <!ENTITY prefix "Events"> <!ENTITY % version SYSTEM "../version.xml"> %version; <!ENTITY % links SYSTEM "../link-entities.xml"> %links; <!ENTITY % parts SYSTEM "../part-entities.xml"> %parts; <!ENTITY options SYSTEM "../options.xml"> ]> <spec> <!-- ************************************************************************* * FRONT MATTER * ************************************************************************* --> &options; <header> <title>Document Object Model (DOM) Level 2 Events Specification</title> <version>1.0</version> <w3c-designation>&doc.prefix;-&doc.date; </w3c-designation> <w3c-doctype>W3C Recommendation</w3c-doctype> <pubdate> <day>&date.day;</day> <month>&date.month;</month> <year>&date.year;</year> </pubdate> <publoc> <loc href="&this.url;">&this.url;</loc> &ps.loc; &pdf.loc; &txt.loc; &zip.loc; </publoc> <latestloc> <loc href="&latest.url;">&latest.url;</loc> </latestloc> <prevlocs> &prev.locs; </prevlocs> <authlist> <author role="editor"> <name>Tom Pixley</name> <affiliation>Netscape Communications Corp.</affiliation> </author> </authlist> <!-- ****************************************************** * DOCUMENT ABSTRACT * ****************************************************** --> <abstract id="id-abstract"> <p>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 <bibref ref='DOMCore'/> and on Document Object Model Level 2 Views <bibref ref='DOMViews'/>.</p> </abstract> &status; <sourcedesc> <p>Created in electronic form.</p> </sourcedesc> <langusage> <language id="en">English</language> </langusage> <revisiondesc> <p>$Revision: 225913 $</p> </revisiondesc> <?GENERATE-TOC?> </header> <front> &toc; ©right; </front> <body> &events; </body> <!-- ************************************************************************* * BACK MATTER * ************************************************************************* --> <back> <div1 role="idl" id="idl"> <head>IDL Definitions</head> <p>This appendix contains the complete OMG IDL <bibref ref='OMGIDL'/> for the Level 2 Document Object Model Events definitions.</p> <p>The IDL files are also available as: <loc href="idl.zip">&this.url;/idl.zip</loc></p> <!-- ****************************************************** | Events OMG IDL DEFINITIONS | ****************************************************** --> <?GENERATE-IDL Events events dom.w3c.org dom views?> </div1> <div1 role="java-binding" id="java-binding"> <head>Java Language Binding</head> <p>This appendix contains the complete Java <bibref ref='Java'/> bindings for the Level 2 Document Object Model Events.</p> <p>The Java files are also available as <loc href="java-binding.zip">&this.url;/java-binding.zip</loc></p> <!-- ****************************************************** | Events JAVA BINDINGS | ****************************************************** --> <?GENERATE-JAVA Events org.w3c.dom events?> </div1> <div1 role="ecma-binding" id="ecma-binding"> <head>ECMAScript Language Binding</head> <p>This appendix contains the complete ECMAScript <bibref ref='ECMAScript'/> binding for the Level 2 Document Object Model Events definitions.</p> <note> <p> Exceptions handling is only supported by ECMAScript implementation conformant with the Standard ECMA-262 3rd. Edition (<bibref ref="ECMAScript"/>). </p> </note> <!-- ****************************************************** | Events ECMASCRIPT BINDINGS | ****************************************************** --> <?GENERATE-ECMA Events?> <p> The following example will add an ECMAScript based EventListener to the Node 'exampleNode': </p> <eg role='code'> // 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); </eg> </div1> &contributors; &glossary; &references; &index; </back> </spec>