title: CreateElement with id?
body: <p>I'm trying to modify this code to also give this div item an ID, however I have not found anything on google, and idName does not work. I read something about <em>append</em>, however it seems pretty complicated for a task that seems pretty simple, so is there an alternative? Thanks :)</p>
  
  <pre><code>g=document.createElement('div'); g.className='tclose'; g.v=0;
  </code></pre>