LISTING object (Object/HTML)

An object that represents the <LISTING> tag.

Availability:

JScript - 3.0
Internet Explorer - 4.0
Deprecated
Inherits from:Element object
JavaScript syntax:IEmyLISTING = myDocument.all.anElementID
IEmyLISTING = myDocument.all.tags("LISTING")[anIndex]
IEmyLISTING = myDocument.all[aName]
-myLISTING = myDocument.getElementById(anElementID)
-myLISTING = myDocument.getElementsByName(aName)[anIndex]
-myLISTING = myDocument.getElementsByTagName("LISTING")[anIndex]
HTML syntax:<LISTING>
Argument list:anIndexA reference to an element in a collection
aNameAn associative array reference
anElementIDThe 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 <LISTING> 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.

The appearance will be similar to that rendered by a <CODE>, <PRE> or <KBD> tag.

Use of this tag is highly deprecated but it still persists in some legacy content.

See also:Element object, KBD object, PRE object

Event nameJavaScriptJScriptNIEOperaNESECMADOMCSSHTMLNotes
onClick n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a4.0 4.0Warning
onDblClick n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a4.0 4.0Warning
onDragStart n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a-
onFilterChange n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a-
onHelp n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a n/aWarning
onKeyDown n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a4.0 4.0Warning
onKeyPress n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a4.0 4.0Warning
onKeyUp n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a4.0 4.0Warning
onMouseDown n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a4.0 4.0Warning
onMouseMove n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a4.0 4.0Warning
onMouseOut n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a4.0 4.0Warning
onMouseOver n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a4.0 4.0Warning
onMouseUp n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a4.0 4.0Warning
onSelectStart n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a-

Inheritance chain:

Element object, Node object