I'd like to be able to extract text data located on other page within the same server in order to make the page source looks more organized.
I included a text from the server using the following html tag.
<text id='sampleText' src='data/sampleText.txt'></text>
I went to the address to clarify if the path is working. After making sure that it's there, then I wrote the javascript to grab it.
document.getElementById("sampleText").value //return: ""
.innerHTML doesn't work either. Is there a way to grab the text via javascript? Or is it my html tag that is wrong? Perhaps both?