Sets or retrieves the value of a list item.
dhtml语法
HTML | <LI VALUE
= sValue... >
|
---|
Scripting | LI.value [ = sValue ] |
---|
DHTML可能的值
sValue | Integer that
specifies or receives the value of the item. |
The property is read/write.
The property has no default value.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see about dynamic properties.
Remarks
In an ordered list, the value is the number that precedes the list item. Changing the value will change the visual numbering of all following list items. In an unordered list, the value is initially zero. Changing the value has no visual effect on the item.
DHTML代码范例
This example sets each line item's value to an integer string.
<OL>
<LI VALUE="1">One
<LI VALUE="2">Two
<LI VALUE="3">Three
</OL>
是否符合公共标准
This property is deprecated in
HTML and
is defined in
World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To