function request(url,cadre){ var XHR = null; if(window.XMLHttpRequest){ XHR = new XMLHttpRequest(); } else{ if(window.ActiveXObject){ XHR = new ActiveXObject("Microsoft.XMLHTTP"); } else{ return; } } XHR.open("GET",url, true); XHR.onreadystatechange = function attente() { if(XHR.readyState == 4) { document.getElementById(''+cadre).innerHTML = XHR.responseText; } } XHR.send(null); return; } function chargeplus(){ var nomancre = window.location.hash; if(nomancre != ""){ nomancre = nomancre.substring(1,nomancre.length); request('pages/'+nomancre+'.php?echo=oui','contenu1'); } }