For some reason, a dynamically created script does not want to work ... If inserted into a manual script, the contents of the element will be displayed. Here is the script:
<div id="container" name="9bf31c7ff062936a96d3c8bd1f8f2ff3"></div> <script type="text/javascript" src="handler.js"></script>
The most contents of the handler:
function init() { var conts=document.getElementById("container"); var hash=conts.getAttribute("name"); var script = document.createElement("script"); conts.appendChild(script); script.type = 'text/javascript'; script.src = 'output/?hash='+hash; } init();
The contents of the script is not shown. But if you manually insert:
<script type="text/javascript" src="output/?hash=9bf31c7ff062936a96d3c8bd1f8f2ff3"></script>
That will be displayed.