brunopulis
6/4/2017 - 11:03 PM

XMLHttpRequest

var httpRequest;

// Mozilla, Safari
if (window.XMLHttpRequest)
    httpRequest = new XMLHttpRequest();
else if (window.ActiveXObject)
    // IE
    httpRequest = new ActiveXObject("Microsoft.XMLHTTP");