Java Reference
In-Depth Information
Property Name
Description
Introduced
length
Returns the number of <option/> elements.
Level 1
multiple
Gets or sets the value of the multiple attribute.
Level 1
name
Gets or sets the value of the name attribute.
Level 1
options
Returns an HTMLOptionsCollection object containing the list
of the <option/> elements.
Level 1
selectedIndex
Returns the index of the currently selected <option/> ele-
ment. Returns -1 if nothing is selected and returns the fi rst
<option/> element selected if multiple items are selected.
Level 1
size
Gets or sets the value of the size attribute.
Level 1
type
Gets the value of the type attribute.
Level 1
value
Gets or sets the current form control's value.
Level 1
Methods
Method Name
Description
Introduced
add(element[,
before])
Adds an <option/> element to the <select/> element. If
before is null , then element is added at the end of the list.
Level 1
blur()
Removes keyboard focus from the elements.
Level 1
focus()
Gives keyboard focus to the element.
Level 1
remove(index)
Removes the <option/> element at the given index. Does
nothing if index is out of range.
Level 1
HTMLTableCellElement
Represents the <td/> element.
Properties
Property Name
Description
Introduced
align
Deprecated. Gets or sets the value of the align attribute.
Level 1
bgColor
Deprecated. Gets or sets the value of the bgcolor attribute.
Level 1
cellIndex
The index of the cell in the row in DOM tree order.
Level 1
colSpan
Gets or sets the value of the colspan attribute.
Level 1
height
Deprecated. Gets or sets the value of the height attribute.
Level 1
Continued
Search WWH ::




Custom Search