Answers for "get text from another file js"

1

html get text from file

<embed src="file.txt"> // This will show the text contained in file.txt in the page
Posted by: Guest on November-14-2020
-1

javascript load content from file

//with JQuery

jQuery.get('http://localhost/foo.txt', function(data) {
    alert(data);
});
Posted by: Guest on December-17-2020

Code answers related to "get text from another file js"

Browse Popular Code Answers by Language