<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Using responseText with innerHTML</title>
<script type="text/javascript">
var xmlHttp;
function createXMLHttpRequest()
{
if (window.ActiveXObject) // IE下创建XMLHTTPREQUEST
{
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"

;
}
else if (window.XMLHttpRequest) // 其他浏览器创建XMLHTTPREQUEST
{
xmlHttp = new XMLHttpRequest();
}
}
function startRequest(){
createXMLHttpRequest();
xmlHttp.onreadystatechange = handleStateChange;
xmlHttp.open("GET","innerHTML.xml",true);
xmlHttp.send(null);
}
function handleStateChange(){
if(xmlHttp.readyState == 4){
if(xmlHttp.status == 200){
document.getElementById("results"

.innerHTML = xmlHttp.responseText;
alert("haha"

;
}
}
}
</script>
</head>
<body>
<form action="#">
<input type="button" value="Search for Today's Activities">
</form>
<div id="results"></div>
</body>
</html>
帮我看看问题出在哪? 谢谢了