EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

statusText property

Retrieves the friendly HTTP status of the request.

Syntax

JavaScript

p = object.statusText

Property values

Type: String

The HTTP status of the request.

Standards information

Remarks

statusText was introduced in Windows Internet Explorer 7.

Examples

The following script checks the status to determine if the request was successful:


oReq.open("GET", "http://localhost/test.xml", false);
oReq.send()
if (oReq.statusText == "OK")
   console.log(oReq.responseText);
else
   console.log(oReq.statusText);


See also

XMLHttpRequest
status

 

 

표시:
© 2014 Microsoft