How can I get the content of the file specified as the 'src' of a <script> tag?
<p>If I have a script tag like this:</p>

<pre><code>&lt;script
    id = "myscript"
    src = "http://www.example.com/script.js"
    type = "text/javascript"&gt;
&lt;/script&gt;
</code></pre>

<p>I would like to get the content of the "script.js" file. I'm thinking about something like <code>document.getElementById("myscript").text</code> but it doesn't work in this case.</p>
