Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
BUG: OnChange Event of <SELECT> Fires Incorrectly in a FRAME When Refreshed Programmatically
Article ID: 319741 - View products that this article applies to.
This article was previously published under Q319741
If you have a FRAMESET object with a FRAME that contains a SELECT control and an INPUT TYPE=TEXT or TEXTAREA control, and the OnChange event of the TEXTAREA control reloads the page, the OnChange event of the SELECT may fire after the page reloads. This behavior may occur even if you do not select a new item from the SELECT control.
To work around this problem, you can use one of the following methods. The method you use depends on the usage of the elements in your application.
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
The problem that is described in the "Symptoms" section of this article may also apply to other events of the SELECT element, such as the onbeforeactivate event. The problem occurs if an unload is triggered from an event of an object that fires when the event loses focus (OnChange event, onblur event).
Steps to Reproduce the Behavior
For more information, visit the following MSDN Web sites:
SELECT Element | select Object