Skip to content

Instantly share code, notes, and snippets.

Created Dec 12, 2017
What would you like to do?
Bitcoin Price Index Watcher in HTML5 Tutorial Step 2
var xmlhttp = new XMLHttpRequest();
var url = "";
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var json = JSON.parse(this.responseText);
};"GET", url, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment