Results 1 - 20 of 161

Storage.key()

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.
API Method Reference Référence Storage storage Web Storage

Web Storage API

The Web Storage API provides mechanisms by which browsers can store key/value pairs, in a much more intuitive fashion than using cookies.
API localStorage Reference sessionStorage Storage storage Web Storage

Using the Web Storage API

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:
API Guide localStorage sessionStorage Storage storage Web Storage API

Storage.clear()

The clear() method of the Storage interface, when invoked, will empty all keys out of the storage.
API Method Reference Référence Storage Web Storage

Storage.getItem()

The getItem() method of the Storage interface, when passed a key name, will return that key's value.
API Method Reference Référence Storage Web Storage

Storage.removeItem()

The removeItem() method of the Storage interface, when passed a key name, will remove that key from the storage.
API Method Reference Référence Storage Web Storage

Storage.setItem()

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.
API Method Reference Référence Storage Web Storage

Document.cookie

Get and set the cookies associated with the current document. For a general library see this simple cookie framework.
API Document HTML DOM JS NeedsMarkupWork Reference storage Storage

IDBCursor

The IDBCursor interface of the IndexedDB API represents a cursor for traversing or iterating over multiple records in a database.
API Database IDBCursor IndexedDB Interface Reference storage Storage

IDBCursor.advance()

The advance() method of the IDBCursor interface sets the number times a cursor should move its position forward.
advance API Database IDBCursor IndexedDB Method Reference storage Storage

IDBCursor.continue()

This method may raise a DOMException of one of the following types:
API continue Database IDBCursor IndexedDB Method Reference storage Storage

IDBCursor.delete()

An IDBRequest object on which subsequent events related to this operation are fired. The result attribute is set to undefined.
API Database delete IDBCursor IndexedDB Method Reference storage Storage

IDBCursor.direction

A string (defined by the IDBCursorDirection enum) indicating the direction in which the cursor is traversing the data. Possible values are:
API Database direction IDBCursor IndexedDB Property Reference Storage storage

IDBCursor.update()

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.
API Database IDBCursor IndexedDB Method Reference Storage storage update Update

IDBCursor

The IDBCursor interface of the IndexedDB API represents a cursor for traversing or iterating over multiple records in a database.
API Database IDBCursor IndexedDB Interface Reference storage Storage

IDBDatabase.close()

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.
API close Database IDBDatabase IndexedDB Method Reference Référence Storage storage

IDBDatabase.createObjectStore()

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.
API createObjectStore Database IDBDatabase IndexedDB Method Reference Référence Storage storage