Microsoft KB Archive/251295

= Select Box Width Not Properly Rendered After Clicking Back Button in Internet Explorer =

Article ID: 251295

Article Last Modified on 5/18/2007

-

APPLIES TO


 * Microsoft Internet Explorer 5.01
 * Microsoft Internet Explorer 5.0
 * Microsoft Internet Explorer 4.01 Service Pack 1
 * Microsoft Internet Explorer 4.01 Service Pack 2
 * Microsoft Internet Explorer 5.01
 * Microsoft Internet Explorer 5.0
 * Microsoft Internet Explorer 4.01 Service Pack 2

-



This article was previously published under Q251295



SYMPTOMS
After you click the Back button in Internet Explorer, select boxes on a Web page may not be displayed or refreshed correctly.



WORKAROUND
To work around this problem, you can use this method on the Web server.

To handle the onload event of the page, call a different function named adjust_stage1. This function uses setTimeout to delay the call to the adjust_stage function just long enough for the rendering of the page to occur.

The code modifications include the following sample code.

Body tag:



Added to the Script tag:

function adjust_stage1

{

window.setTimeout("adjust_stage", 500);

}

You also need to set the width by using a Style tag:





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



MORE INFORMATION
More information about the setTimeout function is available at the following MSDN Web site:

http://msdn2.microsoft.com/en-us/library/ms536753.aspx

Keywords: kbprogramming kbprb kbdisplay KB251295

-

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

© Microsoft Corporation. All rights reserved.