关于跳转的一个问题
<html>
<head>
<script type="text/javascript" >
var xmlhttp;
function xmlhttprequest(){
if(window.ActiveXObject){
xmlhttp = new ActiveXObject('Microsoft.XMLHTTP')
}else if(window.XMLHttpRequest){
xmlhttp=new XMLHttpRequest()
}
}
function readychange(){
if((xmlhttp.readyState == 4) && (xmlhttp.status==200)){
document.getElementById("prompt").innerHTML=xmlhttp.responseText
}
else alert("error");
}
function funtest(x){
var f=document.getElementById(x).value;
xmlhttprequest()
alert(xmlhttp)
alert(f)
xmlhttp.open("GET","http://localhost/Login.php/process.php?name="+f,true)
xmlhttp.onreadystatechange=readychange
alert("success")
xmlHttp.send();
}
</script>
</head>
<body>
<p><input type="text" id="fname" name="name" onblur="funtest(this.id)" /></p>
<p><input type="password" name="password" /></p>
<p id="prompt"></p>
</body>
</html>