Initializes the value of a ProgressEvent object.
Method of dom/ProgressEventdom/ProgressEvent
Syntaxvar object = object.initProgressEvent();
Parameters typeArg
The value of this parameter must be one of the following values. ‘loadstart’ An operation has started. ‘progress’ An operation is in progress. ‘error’ The operation failed to complete. ‘abort’ The operation was cancelled. ‘load’ The operation completed successfully.
canBubbleArgSpecifies whether an event bubbles.
cancelableArgSpecifies whether an event can be cancelled.
lengthComputableIndicates whether the value of the total attribute of the ProgressEvent is accurate.
loadedArgSpecifies the number of bytes already loaded or zero if not known.
totalArgSpecifies the number of bytes to be loaded. If lengthComputable is false, this must be zero (“0”).
Return ValueReturns an object of type DOM NodeDOM Node
Type: HRESULT
This method can return one of these values.
S_OK
NotesDepreciated This feature has been removed from the Web. Though some browsers may still support it, it is in the process of being dropped. Do not use it in old or new projects. Pages or Web apps using it may break at any time.
Non-standard This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
Syntaxvar retval = ProgressEvent.initProgressEvent(typeArg, canBubbleArg, cancelableArg, lengthComputable, loadedArg, totalArg);
AttributionsMozilla Developer Network : [ProgressEvent.initProgressEvent Article]
Microsoft Developer Network: [initProgressEvent Method Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4