I have a javascript code as below:
<script type="text/javascript"
src="https://secure.echosign.com/public/widget?f=8KX2X55PXF274A"
></script>
I get the src
attribute value from the above javascript and added this into a div
tag after the page has been loaded using javascript like that:
var script = document.createElement("script");
script.setAttribute("type", "text/javascript");
script.setAttribute("src", src);
var div = document.getElementById("dialog");
div.appendChild(script);
The script added into the div
at runtime like that:
<script type="text/javascript"
src="https://secure.echosign.com/public/widget?f=8JWIPSI2G2T2FG"></script>
but this javascript code is not executed / loaded at runtime. its src
is pointing to 3rd party content.