All modern browsers have a built-in XML Httprequest object to request for data from a server.
Its advantages are as follows:
1) Updating a web page without reloading the page.
2) Request data from a server
3) Receive data from a server after the page has been loaded.
4) Send data to a server in the background.