XMLHttpRequest, one of the three Ajax legs, is an important tool. here is the official documentation provided by w3shcools for your reference. What is more important is the last TheXMLHttpRequestObjectReference, which can be used as a manual.
AsAjaxOne of the three legsXMLHttpRequestIs an important tool. here isW3shcoolsProvides more official documents for your reference. What is more important is the finalThe XMLHttpRequest Object ReferenceThis can be used as a manual.
The XMLHttpRequest Object
The XMLHttpRequest object is supported in Internet Explorer 5.0, Safari 1.2, Mozilla 1.0/Firefox, and Netscape 7.
What is an HTTP Request?
With an HTTP request, a web page can make a request to, and get a response from a web server-without reloading the page. the user will stay on the same page, and he or she will not notice that scripts might request pages, or send data to a server in the background.
By using the XMLHttpRequest object, a web developer can change a page with data from the server after the page has loaded.
Google Suggest is using the XMLHttpRequest object to create a very dynamic web inte *** ce: When you start typing in Google's search box, a JavaScript sends the letters off to a server and the server returns a list of suggestions.
Is the XMLHttpRequest Object a W 3C Standard?
The XMLHttpRequest object is not a W 3C Standard.
The W 3C DOM Level 3 'load and save' specification contains some similar functionality, but these are not implemented in any browsers yet. so, at the moment, if you need to send an HTTP request from a browser, you will have to use the XMLHttpRequest object.
Creating an XMLHttpRequest Object
For Mozilla, Firefox, Safari, and Netscape:
var xmlhttp=new XMLHttpRequest()
For Internet Explorer:
var xmlhttp=new ActiveXObject('Microsoft.XMLHTTP')
Example