Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript read text file from url

const xhttp = new XMLHttpRequest();
xhttp.onload = function() {
    document.getElementById("demo").innerHTML = this.responseText;
}
xhttp.open("GET", text_file_url);
xhttp.send();
 
PREVIOUS NEXT
Tagged: #javascript #read #text #file #url
ADD COMMENT
Topic
Name
6+7 =