S
Stefan Weber
Hi,
I'm trying to access the JavaScript code contained in a <script> tag
via its "text" attribute. This works well, if the code is embedded in
the HTML page. However, when the code is in an external file with the
"src" attribute, it does not work anymore.
Does anybody have an idea if there is any way (be it clean and simple
or as a workaround) to access the code of external scripts as well? I
read, that if there is something like
<script type="text/javascript" src="./myScript.js">
alert('hello world');
</script>
the external script and the embedded script are concatenate. So I
assume that the result of this concatenation has to be accessible
somehow.
Any ideas?
Thanks,
Stefan
I'm trying to access the JavaScript code contained in a <script> tag
via its "text" attribute. This works well, if the code is embedded in
the HTML page. However, when the code is in an external file with the
"src" attribute, it does not work anymore.
Does anybody have an idea if there is any way (be it clean and simple
or as a workaround) to access the code of external scripts as well? I
read, that if there is something like
<script type="text/javascript" src="./myScript.js">
alert('hello world');
</script>
the external script and the embedded script are concatenate. So I
assume that the result of this concatenation has to be accessible
somehow.
Any ideas?
Thanks,
Stefan