I have a text file stored on the server and an object in HTML like this:
<object id="data" type="text/plain" data="test.txt"></object>
How can I read the contents of test.txt
in Javascript? What I have so far is:
var data = document.getElementByID("data");
But I can't figure out how to read the HTML document inside the object tag.