Ajax GET Request

/ Published in: JavaScript
Save to your folder(s)

Copy this code and paste it in your HTML
  1. var request = getHTTPObject();
  2. if(request) {
  3. request.onreadystatechange = doSomething;
  4. request.open("GET", "file.ext", true);
  5. request.send(null);
  6. }

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.