test javascript 1

</pre>
<strong>  /* ---------------------------- */</strong>

<strong>/* XMLHTTPRequest Objet créé */</strong>

<strong>/* ---------------------------- */</strong>

function createObject() {

var request_type;

var browser = navigator.appName;

if(browser == "Microsoft Internet Explorer"){

request_type = new ActiveXObject("Microsoft.XMLHTTP");

}else{

request_type = new XMLHttpRequest();

}

return request_type;

}

&nbsp;

var http = createObject();

&nbsp;
<pre>
Publicités