Microsoft KB Archive/185123

= PRB: SELECTED Attribute Not Honored After Refresh =

Article ID: 185123

Article Last Modified on 5/11/2006

-

APPLIES TO


 * Microsoft Internet Explorer 4.0 128-Bit Edition
 * Microsoft Internet Explorer 4.01 Service Pack 2

-



This article was previously published under Q185123



SYMPTOMS
After a page is refreshed, the SELECTED attribute of the  tag within a  is not honored. (See "Steps to Reproduce Behavior" section below).

The expected behavior is that Internet Explorer 3.02 and Netscape Navigator 4.0 change the  boxes back to their default options when the page is refreshed.



CAUSE
Internet Explorer persists the state of the  and the stored state is reloaded whenever Internet Explorer navigates through entries in the History list. This includes the back and forward arrows, the lists accessible from those arrows, the history list accessible from the Object Model, and yes, the Refresh button, which is equivalent to going to the most recent item in History.

Reopening the same URL causes the  control to have the original state, as that action does not go through the history.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
  Create a Web page with the following content:   <BODY>  <OPTION VALUE="Zero">Zero <OPTION VALUE="One">One <OPTION VALUE="Two" SELECTED>Two </SELECT> <BR> </BODY> </HTML> </li> <li>Navigate to the Web page that you just created. Select item "One" in the SELECT control.</li> <li></li> <li>Refresh the page by pressing F5.</li></ol>

The SELECT control will have item "One" selected rather than item "Two," which is the default.

<div class="references_section">