3. Creation Of XMLHttpRequest Object

In this lesson we learn how to create an XMLHttpRequest Object, generally as
AJAX is using JavaScript, the browser support is needed for an AJAX enabled
application to work correctly. All modern browsers (IE7+, Firefox, Chrome,
Safari, and Opera) has a built-in XMLHttpRequest object. So for these browsers
it is same as creation of the object in Java or .NET, etc i.e., using the NEW
operator.
xmlhttp=new XMLHttpRequest();
But For Older versions we have to use an ActiveXObject, which is not necessary
in the present days. Its syntax is
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
That's it for the creation of the XMLHttpRequest Object

Points To Remember:

Browser support is required to run the AJAX enabled website & all the modern
browsers support it.
XMLHttpRequest Object is created using the NEW operator xmlhttp=new
XMLHttpRequest();

Go To Lesson 4