This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

index

Summary

Returns an IDBIndex representing an index that is part of the object store.

Method of apis/indexeddb/IDBObjectStoreapis/indexeddb/IDBObjectStore

Syntax

var object = object.index(name);

Parameters

name

Data-type
Blob

Name of the index to be retrieved.

Return Value

Returns an object of type DOM NodeDOM Node

Notes

Remarks

This method can throw the following DOMException exceptions:

Exception properties Description

name: NotFoundError
code: DOMException.NOT_FOUND_ERR (8)
The specified index was not found in the database (case-sensitive).

name: InvalidStateError
code: DOMException.INVALID_STATE_ERR (11)
The data source has been deleted or removed.

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