Using Multiple Event Handlers
In an HTML document, there can be multiple event handlers for each event and element. In this case, events are fired according to the following rules:
- For a given event, only one JScript and one VBScript handler can be executed. Other script languages are not supported.
- JScript and JAVAScript are the same, VBS and VBScript are the same.
- The JScript handler always executes first.
- Handlers set with the FOR and EVENT attributes have the highest priority.
- An inline Visual Basic handler has priority over a Visual Basic-style handler (sub_onchange).
- If there are two elements with the same ID in the same scope, both fire events.
- The default value for the LANGUAGE attribute is JScript.