value Property
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 .
Applies To
StorageItem
See Also