Share via


value Property

New for Windows Internet Explorer 8

Note: This documentation is preliminary and is subject to change.

Sets or retrieves the value of the named storage item.

Syntax

[ sValue = ] StorageItem.value [ = v ]

Possible Values

sValue String that specifies or receives the stored value as a string.

The property is read/write. The property has no default value.

Remarks

All key/value pairs are stored as strings. Different data types (such as numbers, boolean values, and structured data) must first be converted to strings before they can be added to a storage area.

Standards Information

This property is defined in HTML 5 World Wide Web link.

Applies To

StorageItem

See Also

getItem, setItem