i found a code fore an ajax tutorial,and am not familiar with some part of the code there
ajaxRequest.onreadystatechange = function(){
if(ajaxRequest.readyState == 4){
document.myForm.time.value = ajaxRequest.responseText;
}
}
ajaxRequest.open("GET", "pay.php", true);
ajaxRequest.send(null);
can someone please tell me what the above code means,are there any variables,etc? I am aware that pay.php is the php file it reffers to,but what does the first three line of coding mean?