result property

Returns the result of a request.

This property is read-only.

Internet Explorer 10

Syntax

JavaScript
ptr = object.result

Property values

Type: any

Varies according to the request.

Exceptions

This method can throw the following DOMException exceptions:

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.

Exception propertiesCondition
name: InvalidStateError
code: DOMException.INVALID_STATE_ERR (11)

Attempted to read the result property before the request completed.

Standards information

Remarks

The value of that result property depends on the original request. For example, if the original request opened a database, the value of the result property would be an IDBDatabase object.

See also

IDBRequest

 

 

Show:
© 2014 Microsoft