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.

error

Property of dom/Elementdom/Element

Syntax

var result = element.error;
element.error = value;

Notes

Remarks

Fires the onerror event and passes the associated error to the error property. Error codes map directly to World Wide Web Consortium (W3C) file errors, as described in the following table.

Type Description
NotFoundError The resource (File, Blob, or msStream) could not be found at the time the read was processed.
SecurityError One of the following occurred:
  • The file being accessed is unsafe.
  • The file has changed since the user selected it.
  • Other security issues not covered by other error types.
NotReadableError The resource could not be read. This may occur due to permission problems on the file.
EncodingError The resource could not be encoded due to data URL length limitations.

This property is null unless there is an error.

Syntax

See also

Related pages

Attributions