JavaScript Programmer’s Reference Although the List type does

JavaScript Programmer’s Reference Although the List type does not really exist as a data type accessible from a script, the internal behavior of the interpreter appears as if it did. Especially when looking at the way argument lists are processed in new operator expressions. See also: new, Type Cross-references: ECMA 262 edition 2 section 11.2.4 ECMA 262 edition 2 section 8.8 ECMA 262 edition 3 section 8.8 ECMA 262 edition 3 section 11.2.4 LISTING object (Object/HTML) An object that represents the

tag. Availability: JScript 3.0 Internet Explorer 4.0 Deprecated Inherits from: Element object IE myLISTING = myDocument.all.anElementID IE myLISTING = myDocument.all.tags(”LISTING”)[anIndex] IE myLISTING = myDocument.all[aName] -myLISTING = myDocument.getElementById(anElementID) -myLISTING = myDocument.getElementsByName(aName)[anIndex] JavaScript syntax: -myLISTING = myDocument.getElementsByTagName (”LISTING”)[anIndex] HTML syntax: anIndex A reference to an element in a collection aName An associative array reference Argument list: anElementID The ID value of an Element object Event handlers: onClick, onDblClick, onDragStart, onFilterChange, onHelp, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp, onSelectStart The LISTING object is instantiated when the browser encounters a tag in the HTML for a document. This tag is used to enclose a section of text that should be presented as if it were a computer code listing. 1348

Leave a Reply