title: Javascript move div to tag end body </body>
body: <p>How to move div to before tag end body <code>&lt;/body&gt;</code>. I'm using openx, I cannot change div content, because the content owned by others. I just put code javascript from openx in order to get banner I put the code after tag <code>&lt;body&gt;</code> before anyting tag in content.
  And my problem is, when I put javascript from openx to generate banner I get two div parallel, which the banner in <code>&lt;div id="div1"&gt;</code> and <code>&lt;div id="div2"&gt;</code> there are in below tag <code>&lt;body&gt;</code>, I want to <code>&lt;div id="div1"&gt;</code> after tag start body <code>&lt;body&gt;</code> above anyting tag in content. And <code>&lt;div id="div2"&gt;</code> in before tag end body <code>&lt;/body&gt;</code> after anyting tag. </p>
  
  <p>This is I get html from openx, as below:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div id="div1"&gt;&lt;img src="blablabla" /&gt;&lt;/div&gt;
          &lt;div id="div2"&gt;&lt;img src="blablabla" /&gt;&lt;/div&gt;
          Here is content other div id or div class,
          I not define example insert after div id footer
          Because this is content owned by others.
          This is justexample content.
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and I want to transform to as below:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div id="div1"&gt;&lt;img src="blablabla" /&gt;&lt;/div&gt;
          Here is content other div id or div class,
          I not define, example insert after div id footer
          Because this is content owned by others.
          This is justexample content.
          &lt;div id="div2"&gt;&lt;img src="blablabla" /&gt;&lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Because I want to put banner one above content and banner two to below content. I don't want to use CSS <code>position: fixed</code>.</p>
  
  <p>So, possible to move tag div to before tag end body?
  If possible, please help me code javascript to do it.</p>
  
  <p>Thanks.</p>