using innerHTML efficient in handling this task so let us use that method. Basically this line tells the browser to place the data into an element and display it.

Line 12: We want to open a request and obtain the data so this method allows for that. It uses three arguments Get, args[1] and true. Get as the term implies retrieves the data, the second argument args[1] will allow us to specify which data file to obtain and the third tells the browser to load the data asynchronously. If this third argument is set to true the data loads asynchronously and if set to false it does not.

The following table on the next page, provides common XMLHttpRequest object methods