---
title: responseText
framework: tvmljs
role: symbol
role_heading: Instance Property
path: tvmljs/xmlhttprequest/1627363-responsetext
---

# responseText

The response to the request.

## Declaration

```data
readonly attribute String responseText;
```

```data
readonly attribute DOMString? responseText;
```

## Discussion

Discussion If the request was unsuccessful or has not been sent, the value of this attribute is null. Otherwise, this attribute contains a string containing the response.

## See Also

### Retrieving Request Information

- [metrics](tvmljs/xmlhttprequest/1627436-metrics.md)
- [readyState](tvmljs/xmlhttprequest/1627324-readystate.md)
- [response](tvmljs/xmlhttprequest/1627364-response.md)
- [responseCacheIsValid](webkitjs/xmlhttprequest/2871089-responsecacheisvalid.md)
- [responseType](tvmljs/xmlhttprequest/1627342-responsetype.md)
- [responseURL](webkitjs/xmlhttprequest/1630664-responseurl.md)
- [responseXML](tvmljs/xmlhttprequest/1627307-responsexml.md)
- [status](tvmljs/xmlhttprequest/1627403-status.md)
- [statusText](tvmljs/xmlhttprequest/1627375-statustext.md)
