RE: What are the different readystates in XMLHttpRequest?

What are the different readystates in XMLHttpRequest?

arjun Team Leader Asked on February 12, 2017 in AJAX.
Add Comment
1 Answers

The XMLHttpRequest.readyState property returns the state an XMLHttpRequest client is in

Value     State                                                       Description
0              UNSENT                                               Client has been created. open() not called yet.
1             OPENED                                               open() has been called.
2             HEADERS_RECEIVED                  send() has been called, headers & status are available.
3             LOADING                                             Downloading; responseText holds partial data.
4             DONE                                                     The operation is complete.

Team Leader Answered on February 13, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.