title: Differences between IE and chrome for iframes
body: <p>I know there must be tons of post on IE vs Chrome and stuff, but I can't find what I'm looking for.</p>
  
  <p>I'm developing a website and it seems that some content won't do the same thing on each browser... I know that it some cases we need do special code for IE, but in my case, it only works on IE and won't work on Chrome... which I find it kinda weird.</p>
  
  <p>In my case, I'm trying to insert an <code>&lt;iframe&gt;</code> in my page that will show text, images and stuff (like word... for exemple) and I have some javascript to enable me from editing the content of the <code>&lt;iframe&gt;</code></p>
  
  <pre><code>function init() {
      iView.document.designMode = 'On';
      if (is_ie) docobj = document.frames['myView'].document;
      if (is_ie) AttachEventListener(docobj,"keydown",new Function("HtmlEditProcessKeyPressed('myView')"));
  }
  </code></pre>
  
  <p>And here's the frame</p>
  
  <pre><code>&lt;iframe id="myView" style="width: 850px; height: 325px" width="940" height="250" src="&lt;%=PATH%&gt;/document"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>That works perfectly fine on IE ; I can see the text from my document and I can edit it without problem.</p>
  
  <p>However, in chrome (haven't tried any other browser), the background color of the frame is gray and I can't edit the text... but I can see it.</p>
  
  <p>Any explication / theory is appreciated, thanks</p>