Returns the HTTP status text.
Property of apis/xhr/XMLHttpRequestapis/xhr/XMLHttpRequest
SyntaxNote: This property is read-only.
var result = element.statusText;
Return Value
Returns an object of type StringString
Examples
var xhr = new XMLHttpRequest();
xhr.open("GET", "http://localhost/test.xml", false);
xhr.send()
if (xhr.statusText == "OK")
console.log(xhr.responseText);
else
console.log(xhr.statusText);
Related specifications
Microsoft Developer Network: Windows Internet Explorer API reference 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