IDBCursor object
A cursor lets you iterate (walk through) a set of records from either an object store or an index.
![]() |
DOM Information
Inheritance Hierarchy
The IDBCursor does not inherit from any class or interface.Members
The IDBCursor object has these types of members:
Methods
The IDBCursor object has these methods.
| Method | Description |
|---|---|
| advance |
Advances the position of a cursor forward by a specified number of records. |
| continue |
Advances the position of cursor object to the next object. |
| openCursor |
Returns a cursor object positioned at the first record object in a data source, optionally filtered by a key range and ordered by a direction. |
| update |
Updates a value in the current record of the cursor. |
Properties
The IDBCursor object has these properties.
| Property | Access type | Description |
|---|---|---|
| Read-only |
Indicates the direction of traversal within a cursor. | |
| Read-only |
The key value for the record currently displayed by the cursor. | |
| Read-only |
Returns the value of the primary key associated with a record. | |
| Read-only |
Returns a reference to the source of a request, such as an object store or a cursor. |
Standards information
Remarks
| Constant | Text Value |
|---|---|
| IDBCursor.NEXT | next |
| IDBCursor.NEXT_NO_DUPLICATE | nextunique |
| IDBCursor.PREV | prev |
| IDBCursor.PREV_NO_DUPLICATE | prevunique |
| IDBCursor.READ_ONLY | readonly |
| IDBCursor.READ_WRITE | readwrite |
| IDBCursor.VERSION_CHANGE | versionchange |
