TEST
<script type="text/javascript">
var xmlHttp;
if(window.XMLHttpRequest){
xmlHttp=new XMLHttpRequest();
}else{
xmlHttp=new ActiveXObject("Miscrosoft.XMLHTTP");
}
function ChangeContent()
{
xmlHttp.onreadystatechange=StateChange;
xmlHttp.open("Get","test.txt",true);
xmlHttp.send();
}
function StateChange()
{
if(xmlHttp.readyState==4&&xmlHttp.status==200)
{
document.getElementById("divTest").innerHTML=xmlHttp.responseText;
}
}
</script>
<body> <div id="divTest"> change the content </div> <button id="btnGet" type="button" onclick="ChangeContent();"> CLICK</button> </body> </html>