title: How to set onmousedown event for dynamically created div in IE?
body: <p>I have a (Javascript) tool which dynamically creates a div whenever the user clicks on the screen.</p>
  <pre><code>_newDiv = document.createElement('div');
  </code></pre>
  <p>Now, after I've created <code>_newDiv</code>, I want to assign a <code>onmousedown</code> event to it.</p>
  <pre><code>_newDiv.onmousedown = function(event) { onNewDivMouseDown(event); };
  </code></pre>
  <p>This works perfectly in Firefox, but doesn't work in IE 8. Is there any hack I can use to solve this problem?</p>