title: document.body.appendChild(i)
body: <p>I am getting error only in IE7 as <code>document.body</code> is null; when I debug with Microsoft script editor I am getting the error in the following line:
  i.e. </p>
  
  <blockquote>
    <p>document.body.appendChild(i)</p>
  </blockquote>
  
  <p>Code:</p>
  
  <pre><code>function nm_eraseCookie(name){
      nm_createCookie(name,"",-1)
  }
  var i=document.createElement('IMG');
  i.src='//e.netmng.com/pixel/?aid=403';
  i.width=1;
  i.height=1;
  document.body.appendChild(i);
  nm_createCookie('nm_belgacom_bt',
  escape('tv1=bun_intvtel;tv2=;tv3=;phone1=hbs_discoveryline;phone2=hbs_classical_line;phone3=;inet1=bun_nettvmob;inet2=hbs_adsl_res_plus;inet3=hbs_adsl_res_go;nm_banner=;nm_popin=hbs_discoveryline;'),183);
  </code></pre>
  
  <p>Can you inform me what I need to do to solve this issue?</p>