Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. xmlhttp=new XMLHttpRequest();
  2. xmlhttp.onreadystatechange=function()
  3. {
  4.   if (xmlhttp.readyState==4 && xmlhttp.status==200)
  5.   {
  6.     document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
  7.   }
  8. }
  9. xmlhttp.open("GET","ajax_info.txt",true);
  10. xmlhttp.send();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement