title: javascript in innerhtml not working
body: <p>For example:</p>
  
  <pre><code>&lt;html&gt;
      &lt;div id="media"&gt;123&lt;/div&gt;
      &lt;a href="javascript:void(0)" onClick="return fun()"&gt;Click&lt;/a&gt;
      &lt;script type="text/javascript"&gt;
          function fun() {
              document.getElementById("media").innerHTML = '&lt;script type="text/javascript"&gt;alert("working");&lt;\/script&gt;';
          }
      &lt;/script&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>After you click the alert does not show.</p>
  
  <p><code>alert("working")</code>; is just an example. I want it to finish one job other javascript 
  . I have a job to be processed through ajax should have used innerHTML</p>