Class: ProgressEvent

whatwg-xhr.ProgressEvent()

new ProgressEvent()

Interface that represents events measuring progress of an underlying process, like an HTTP request for an XMLHttpRequest client.
Source:

Extends

Members

(readonly) lengthComputable :boolean

A boolean value indicating if the total work to be done, and the amount of work already done, by the underlying process is calculable.
Type:
  • boolean
Default Value:
  • false
Source:

(readonly) loaded :number

A number representing the amount of work already performed by the underlying process.
Type:
  • number
Default Value:
  • 0
Source:

(readonly) total :number

A number representing the total amount of work that the underlying process is in the progress of performing.
Type:
  • number
Default Value:
  • 0
Source:

Methods

constructor(type, eventInitDict)

Constructs a new ProfressEvent object.
Parameters:
Name Type Description
type string A case-sensitive name of the event.
eventInitDict object (Optional) An object that, in addition to the properties defined in Event(), can have lengthComputable, loaded and total.
Source:

A Node.js implementation of the WHATWG XMLHttpRequest Living Standard for non-browser environments.