I have the following .js file, call it myScript.js, which contains the code:
function Something()
{
}
It is embedded in the main HTML as such:
<script src="myScript.js"></script>
I want to obtain the output
function Something()
{
}
Normally, one would use the DOM to extract the script via .innerHTML, but in this case .innerHTML returns an empty string. How would the result be achieved in this case?