I want to extract all the words from the HTML file and store them into a textarea as follows. Is there any way to grab all this content in an array using Javascript? Any tips would be much appreciated.
<textarea id="url" name="url" type="Text"></textarea>
<a href="javascript:oF(document.getElementById('url').value)">Open File</a>
<script>
var f;
function oF(url) {
f = window.open();
f.location = url;
}
</script>
What I need is, when I click the URL [open file] the html scripts will be stored in that textarea.