Ajax GET Request


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



Copy this code and paste it in your HTML
  1. var xmlhttp = new XMLHttpRequest();
  2. xmlhttp.open('GET', 'http://whatever.com/myscript.php?param=5', true);
  3. xmlhttp.onreadystatechange = function() {
  4. };
  5. xmlhttp.send(null);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.