The key() method of the Storage interface, when passed a number n, returns the name of the nth key in the storage. The order of keys is user-agent defined, so you should not rely on it.
The Web Storage API provides mechanisms by which browsers can store key/value pairs, in a much more intuitive fashion than using cookies.
Storage objects are simple key-value stores, similar to objects, but they stay intact through page loads.  The keys and the values are always strings (note that integer keys will be automatically converted to strings, just like what object do). You can access these values like an object, or with the getItem() and setItem() methods.  These three lines all set the colorSetting entry in the same way:
The clear() method of the Storage interface, when invoked, will empty all keys out of the storage.
The getItem() method of the Storage interface, when passed a key name, will return that key's value.
The removeItem() method of the Storage interface, when passed a key name, will remove that key from the storage.
The setItem() method of the Storage interface, when passed a key name and value, will add that key to the storage, or update that key's value if it already exists.
Get and set the cookies associated with the current document. For a general library see this simple cookie framework.
The IDBCursor interface of the IndexedDB API represents a cursor for traversing or iterating over multiple records in a database.
The advance() method of the IDBCursor interface sets the number times a cursor should move its position forward.
This method may raise a DOMException of one of the following types:
An IDBRequest object on which subsequent events related to this operation are fired. The result attribute is set to undefined.
A string (defined by the IDBCursorDirection enum) indicating the direction in which the cursor is traversing the data. Possible values are:
The update() method of the IDBCursor interface returns an IDBRequest object, and, in a separate thread, updates the value at the current position of the cursor in the object store. If the cursor points to a record that has just been deleted, a new record is created.
The IDBCursor interface of the IndexedDB API represents a cursor for traversing or iterating over multiple records in a database.
The connection is not actually closed until all transactions created using this connection are complete. No new transactions can be created for this connection once this method is called. Methods that create transactions throw an exception if a closing operation is pending.
The method takes the name of the store as well as a parameter object that lets you define important optional properties. You can use the property to uniquely identify individual objects in the store. As the property is an identifier, it should be unique to every object, and every object should have that property.