1var xhttp = new XMLHttpRequest();
2 xhttp.onreadystatechange = function() {
3 if (this.readyState == 4 && this.status == 200) {
4 return this.responseText;
5 }
6 };
7 xhttp.open("GET", "[your database]", true);
8 xhttp.send();
9
10
11//add the url of your database in the [your database] string.