title: Javascript innerHTML Load
body: <p>i have the folowing code:</p>
  
  <pre><code>window.document.getElementById("bufferTopic").innerHTML = "&lt;img src='einstein/einstein.png' width='800' height='600'&gt;&lt;script type='text/javascript' language='javascript'&gt;alert('test');&lt;/script&gt;"
  </code></pre>
  
  <p>i have it within a script file. the idea is to cache some images inside a div and when it completes run a script.</p>
  
  <p>but it is not working.</p>
  
  <p>any comments on why it is not working?</p>
  
  <p>thanks.</p>
  
  <p>EDIT: the script loads the image alright though.</p>