1 2 3 4 5 6 7 8 9
xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4){ document.myForm.time.value=xmlHttp.responseText; } } xmlHttp.open(“GET”,”time.php”,true); xmlHttp.send(null); }