responseText Property
Contains the body of the response returned by the server.
Syntax
[ p = ] object.responseText
Possible Values
p String that receives the text received from the server. The property is read-only. The property has no default value.
Remarks
After the onload event has been raised, responseText contains the complete server response.
In the time after the onprogress event is raised and before the onload event is raised, responseText contains either a partial response or the complete server response.
The responseText value is an empty (zero-length) string in three cases:
- before the onprogress event is raised
- after the onprogress event is raised and before the first character has been received
- after the onload event is raised and the server has returned an empty string as a response
Example
For an example of how this property is used, see Introducing Cross-domain Request.
Standards Information
There is no public standard that applies to this property.
Applies To
XDomainRequest, XDomainRequest Constructor
See Also
- 1/6/2012
- iamdacian