Skip to content

Instantly share code, notes, and snippets.

@JHarry444
Created February 7, 2019 14:36
Show Gist options
  • Save JHarry444/54385aaed522b5d7e06a003793bf962a to your computer and use it in GitHub Desktop.
Save JHarry444/54385aaed522b5d7e06a003793bf962a to your computer and use it in GitHub Desktop.
let xhr = new XMLHttpRequest();
xhr.open("GET", "api/movie/getAllMovies");
xhr.onload = () => {
document.write(xhr.responseText);
}
xhr.send();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment