XMLHttpRequest 2 Demo: responseType demo

Click the button to trigger the request.

The responseType — in this case, document — will be displayed below along with data from the first child of our XML response.