put
Summary
Creates a structured clone of the value parameter.
Method of apis/indexeddb/IDBObjectStoreapis/indexeddb/IDBObjectStore
Syntax
var object = object.put(value, key);
Parameters
value
- Data-type
- Blob
An object literal containing the values to be stored in the object store.
key
- Data-type
- Blob
The key value of the new record.
Return Value
Returns an object of type DOM NodeDOM Node
Notes
Remarks
This method can throw the following DOMException exceptions:
Exception properties | Description |
|
The data could not be saved to the object store. |
|
The specified key value is invalid or the value specified for an indexed attribute is invalid. |
|
The object store has been deleted or is otherwise unavailable. |
|
The associated transaction is read-only. |
|
The associated transaction is not active. |
Note As of Internet Explorer 10, the code property is deprecated in favor of the name property, which is preferred for standards compliance and future compatibility.
Syntax
Standards information
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]