Export (0) Print
Expand All

key property

The key value for the record currently displayed by the cursor.

This property is read-only.

Internet Explorer 10

Syntax

JavaScript
key = object.key

Property values

Type: any

A value as described in the following Remarks section or "undefined" if the cursor is iterating to a new record or if the current record is outside the cursor range.

Standards information

Remarks

The value of the key property depends on the source of the cursor.

Cursor SourceValue
index The attribute associated with the index.
object store The value of the record's primary key.

 

See also

IDBCursor

 

 

Show:
© 2014 Microsoft