my scriptedHTTP.js
has:
var req = new XMLHttpRequest();
req.open("GET", "scripts/text.txt", true);
req.send(null);
var div = document.createElement('div');
div.innerHTML = req.responseText;
when I load the page, browser console shows:
XHR finished loading: GET "http://localhost:8000/scripts/text.txt".
but I get nothing on the page:
how do I handle responseText
so it shows on the page?
thanks.