statusText property (XMLHttpRequest)
Returns a string that represents the status of the request in a friendly form.
To get the status code of a request, use the status property. The page for the status property contains descriptions about the possible status codes that are similar to the statusText property.
You can find the related objects in the Supported by objects section below.
This property is read-only.
String that represents the status text.
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the statusText property:
Did you find this example helpful?
User Contributed Comments