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

<DIR> — NN all IE all HTML all

Synopsis

<DIR>...</DIR>

End Tag: Required

The original idea of the DIR element was to allow browsers to generate multicolumn lists of items. Virtually every browser, however, treats the DIR element the same as a UL element, to present an unordered single column list of items (usually preceded by a bullet). The DIR element is deprecated in HTML 4. You should be using the UL element, in any case, because you are assured backward compatibility and forward compatibility should this element ever disappear from the browser landscape. Everything said here also applies to the deprecated MENU element.

Example

Common DB Connector Types:
<DIR>
    <LI>DB-9
    <LI>DB-12
    <LI>DB-25
</DIR>

Object Model Reference

IE

[window.]document.all.elementID

Attributes

CLASS

DIR

LANG

STYLE

TITLE

COMPACT

ID

LANGUAGE

  

Event Handler Attributes

Handler

NN

IE

HTML

onClick

n/a

4

4

onDblClick

n/a

4

4

onDragStart

n/a

4

n/a

onHelp

n/a

4

n/a

onKeyDown

n/a

4

4

onKeyPress

n/a

4

4

onKeyUp

n/a

4

4

onMouseDown

n/a

4

4

onMouseMove

n/a

4

4

onMouseOut

n/a

4

4

onMouseOver

n/a

4

4

onMouseUp

n/a

4

4

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