READ Free Dumps For Microsoft- 70-480
Question ID 14932 | You create the following JavaScript code: You must complete the ShowCanWeAfford() function:
|
Option A |
|
Correct Answer | A |
Question ID 14933 | You are creating a function named getText(). |
Option A |
* onreadystatechange When a request to a server is sent, we want to perform some actions based on the response. The onreadystatechange event is triggered every time the readyState changes. The readyState property holds the status of the XMLHttpRequest. Example xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("myDiv").innerHTML=xmlhttp.responseText; } } * Send a Request To a Server To send a request to a server, we use the open() and send() methods of the XMLHttpRequest object: xmlhttp.open("GET","xmlhttp_info.txt",true); xmlhttp.send(); |
Correct Answer | A |