HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
XMLHttpRequest is the foundation of AJAX.
All modern browsers support XMLHttpRequest object (IE5 and IE6 use ActiveXObject).
XMLHttpRequest for exchanging data with the server behind the scenes. This means that without reloading the entire page of a section of the page is updated.
All modern browsers (IE7 +, Firefox, Chrome, Safari and Opera) are built-in XMLHttpRequest object.
Create XMLHttpRequest object syntax:
Older versions of Internet Explorer (IE5 and IE6) using ActiveX objects:
In order to cope with all modern browsers, including IE5 and IE6, please check whether the browser supports the XMLHttpRequest object. If so, then create XMLHttpRequest object. If not, create ActiveXObject ::
In the next chapter, you will learn the sending server requests.