MCQs > IT & Programming > Ajax > You want to update the following element with the XMLHttpRequest status. Which of the following approaches is correct for the purpose?

Ajax MCQs

You want to update the following element with the XMLHttpRequest status.
Which of the following approaches is correct for the purpose?
<div id="statusCode"></div>

Answer

Correct Answer: var myDiv = document.getElementById ("statusCode"); myDiv.innerHTML = req.status;

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Ajax Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Ajax Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it