Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

AJAX - The XMLHttpRequest Object

// Create an XMLHttpRequest object
const xhttp = new XMLHttpRequest();

// Define a callback function
xhttp.onload = function() {
  // Here you can use the Data
}

// Send a request
xhttp.open("GET", "ajax_info.txt");
xhttp.send();
 
PREVIOUS NEXT
Tagged: #AJAX #The #XMLHttpRequest #Object
ADD COMMENT
Topic
Name
7+1 =