javascript - how to insert a script tag to div?
How to do that:

    document.getElementById('target').innertHTML = "&lt;script&gt; alert(1); &lt;script&gt;";
    <div id="target"></div>

script will be print on browser like a string.How to do is as script ?
javascript - how to insert a script tag to div?
===

How to do that:

    document.getElementById('target').innertHTML = "&lt;script&gt; alert(1); &lt;script&gt;";
    <div id="target"></div>

script will be print on browser like a string.How to do is as script ?