O'Reilly logo

Dynamic HTML: The Definitive Reference by Danny Goodman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

<LISTING> — NN all IE all HTML <4

Synopsis

<LISTING>...</LISTING>

End Tag: Required

The LISTING element displays its content in a monospace font as a block element, as in computer code listings rendered 132 columns wide. In most browsers, the font size is also reduced from the default size. Browsers observe carriage returns and other whitespace in element content. This element has been long deprecated in HTML and has even been removed from the HTML 4.0 specification. You are encouraged to use the PRE element instead.

Example

<LISTING>
&lt;SCRIPT LANGUAGE="JavaScript"&gt;
   document.write("Hello, world.")
&lt;/SCRIPT&gt;
</LISTING>

Object Model Reference

IE

[window.]document.all.elementID

Attributes

CLASS

LANG

LANGUAGE

STYLE

TITLE

ID

    

Event Handler Attributes

Handler

NN

IE

HTML

onClick

n/a

4

n/a

onDblClick

n/a

4

n/a

onDragStart

n/a

4

n/a

onHelp

n/a

4

n/a

onKeyDown

n/a

4

n/a

onKeyPress

n/a

4

n/a

onKeyUp

n/a

4

n/a

onMouseDown

n/a

4

n/a

onMouseMove

n/a

4

n/a

onMouseOut

n/a

4

n/a

onMouseOver

n/a

4

n/a

onMouseUp

n/a

4

n/a

onSelectStart

n/a

4

n/a

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required