Microsoft KB Archive/897285

= The contents of a document may not be overwritten as you expect when you use the document.write method to dynamically update a document in Windows XP with Service Pack 2 =

Article ID: 897285

Article Last Modified on 7/6/2005

-

APPLIES TO

 Microsoft Internet Explorer (Programming) 6.0, when used with:  Microsoft Windows XP Service Pack 2

 Microsoft Windows XP Service Pack 2 

-





SYMPTOMS
On a computer that is running Microsoft Windows XP with Service Pack 2 (SP2), when you use the document.write method to dynamically update a document, the contents of the document may not be overwritten as you expect.



CAUSE
This problem may occur if you copy text from a Web browser control by using the ExecWB method with the OLECMDID_COPY constant as the first argument.



WORKAROUND
To work around this problem, use the IHTMLDocument:execCommand(&quot;copy&quot;) method to copy the text from the Web browser control.

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

<div class="moreinformation_section">

MORE INFORMATION
This problem does not occur when you use versions of Internet Explorer that were released before the release of Windows XP SP2.

Keywords: kbinetdev kbtshoot kbprb KB897285

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.