Microsoft KB Archive/291125

= PRB: Cannot Edit IFRAME in a Web Page Dialog Box in Internet Explorer 5.5 =

Article ID: 291125

Article Last Modified on 5/11/2006

-

APPLIES TO


 * Microsoft Internet Explorer 5.5

-



This article was previously published under Q291125



SYMPTOMS
If you call the window.showModalDialog or window.showModelessDialog methods to place an IFRAME in a Web page dialog box, you cannot edit the IFRAME, even if you set the iframe.document.designMode property to &quot;On&quot;.



CAUSE
This problem occurs because the iframe.document.designMode=&quot;On&quot; property does not work in Internet Explorer 5.5.



RESOLUTION
To resolve this problem, use the new iframe.document.body.contentEditable = &quot;True&quot; property in Internet Explorer version 5.5.

Note: The iframe.document.body.contentEditable = &quot;True&quot; property is not available in Internet Explorer 5.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce Behavior
Use window.showModalDialog or window.showModelessDialog to open the following HTML file in Internet Explorer 5.5:  function window_onload { textEdit.document.body.contentEditable = &quot;True&quot;; //This line works in Internet Explorer 5.5, // but not in Internet Explorer 5. textEdit.document.designMode=&quot;On&quot;; //This line works in Internet Explorer 5, // but not in Internet Explorer 5.5. textEdit.focus; }    Notice that you can edit the textEdit IFRAME in Internet Explorer 5, but not in Internet Explorer 5.5.

