javascript - how to insert a script tag to div?
<p>How to do that:</p>

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

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