AJAX Examples

Basic AJAX Example

the function XMLHttpRequest() returns an new XMLHttpRequest Object

This object helps us handle requests asynchronously

Asynchronous requests prevent the browser from having to wait

We can also use the DOM to access and update elements

And we can modify multiple elements, for example, using getElementsByTagName