title: Javascript: DOM Exception: INVALID_CHARACTER_ERR (5)
body: <p>I tested my site with the new IE 9 and I get the error telling me INVALID_CHARACTER_ERR (5). In IE 9, the developer tools highlights this line. Can anyone help me with this error?</p>
  
  <p>Error Line</p>
  
  <pre><code>this.iframe = document.createElement('&lt;IFRAME src="' + myCurrentUrl + '" frameborder=0&gt;');
  
  
  Function Code
  __createDivs : function()
  {
  this.divs_transparentDiv = document.createElement('DIV');
  this.divs_transparentDiv.className='modalDialog_transparentDivs';
  this.divs_transparentDiv.style.left = '0px';
  this.divs_transparentDiv.style.top = '0px';
  document.body.appendChild(this.divs_transparentDiv);
  this.divs_content = document.createElement('DIV');
  this.divs_content.className = 'modalDialog_contentDiv';
  this.divs_content.id = 'DHTMLSuite_modalBox_contentDiv';
  this.divs_content.style.zIndex = 100000;
  if(this.MSIE){
  var myCurrentUrl = GlobPanelCurrentBaseUrl + 'images/spacer.gif';
  this.iframe = document.createElement('&lt;IFRAME src="' + myCurrentUrl + '" frameborder=0&gt;');
  this.iframe.style.zIndex = 90000;
  this.iframe.style.position = 'absolute';
  document.body.appendChild(this.iframe); 
  }
  document.body.appendChild(this.divs_content);
  this.divs_shadow = document.createElement('DIV');
  this.divs_shadow.className = 'modalDialog_contentDiv_shadow';
  this.divs_shadow.style.zIndex = 95000;
  document.body.appendChild(this.divs_shadow);
  window.refToModMessage = this;
  this.addEvent(window,'scroll',function(e){ window.refToModMessage.__repositionTransparentDiv() });
  this.addEvent(window,'resize',function(e){ window.refToModMessage.__repositionTransparentDiv() });
  }
  </code></pre>