Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

xhr request

var url = "https://example.com/";

var xhr = new XMLHttpRequest();
xhr.open("GET", url);

xhr.onreadystatechange = function () {
   if (xhr.readyState === 4) {
      console.log(xhr.status);
      console.log(xhr.responseText);
   }};

xhr.send();
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript sample list 
Javascript :: lodash filter object keys 
Javascript :: js window active 
Javascript :: jquery bind click 
Javascript :: how to comment in the react javascript 
Javascript :: get id of first td jquery 
Javascript :: map to array javascript 
Javascript :: how to push array in redux 
Javascript :: get child routes using parent in angular 
Javascript :: jspdf add page 
Javascript :: search no of item in array 
Javascript :: bootstrap in react 
Javascript :: dom click is not a function 
Javascript :: react update component after api call 
Javascript :: search class regex 
Javascript :: js replace all symbols in string 
Javascript :: multidimensional array push in jquery 
Javascript :: jquery validate checkbox before submit 
Javascript :: remove specific property from json object javascript 
Javascript :: javascript count occurrences in string 
Javascript :: how to loop through array of numbers in javascript 
Javascript :: open gz file node 
Javascript :: mongodb import from json 
Javascript :: two decimel javascript 
Javascript :: encodeuricomponent js 
Javascript :: how to create a folder in node js 
Javascript :: next js absolute path 
Javascript :: daterangepicker set maxdate 
Javascript :: google sheet app script 
Javascript :: compose javascript 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =