// var xhr = new XMLHttpRequest(); // xhr.open('GET', 'http://mon_site_web.com/ajax.php'); // xhr.send(null); // alert("ajax.js file"); // // var xhr = new XMLHttpRequest(); // // xhr.open('HEAD', 'http://mon_site_web.com/', false); // xhr.send(null); // // alert(xhr.getResponseHeader('Content-type')); // Affiche : « text/html; charset=utf-8 » // // alert("ajax.js ended");