Microsoft
MB2-701 · Question #43
You need to verify that an XmlHttpRequest has completed in JavaScript. What should you do?
The correct answer is A. Create an event handler for the onreadystatechange event. See the full explanation below for the reasoning.
Question
You need to verify that an XmlHttpRequest has completed in JavaScript. What should you do?
Options
- ACreate an event handler for the onreadystatechange event
- Bexplicitytly set the Request header to a different HTIP action
- Cexplicitly set Request header to accept JSON
- Dcheck textStatus for a timeout
How the community answered
(39 responses)- A79% (31)
- B13% (5)
- C3% (1)
- D5% (2)
Community Discussion
No community discussion yet for this question.