Name

SIZE — NN all IE all HTML all

Synopsis

SIZE=”rowCount"

Optional

Controls the number of rows of OPTION elements that appear in the SELECT element. With a value of 1, the SELECT element displays its content as a pop-up menu; with a value greater than 1, OPTION items are rendered in a list box. Browsers control the width of the element, based on the widest text associated with nested OPTION elements.

Example

<SELECT NAME="equipment" SIZE=3>
<OPTION VALUE="monitor">Video monitor
<OPTION VALUE="modem">Modem
<OPTION VALUE="printer">Printer
...
</SELECT>

Value

Any positive integer.

Default

1

Object Model Reference

IE

[window.]document.formName.selectName.size

[window.]document.forms[i].elements[i].size

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.