PRB: VBScript Style Event Trapping Does Not Work in JScript (183617)
The information in this article applies to:
- Microsoft JScript 2.0
- Microsoft JScript 3.0
This article was previously published under Q183617 SYMPTOMS
In Microsoft JScript 1.0, the VBScript-style event syntax using
Object_Event could be used to trap events. The following is an example of
this syntax:
function MyObject_MyEvent(a, b)
{
// event code
}
CAUSE
JScript 1.0 incorrectly implemented the above syntax.
RESOLUTION
Use the FOR and EVENT attributes of the <SCRIPT> tag to handle JScript
events.
STATUS
This behavior is by design.
REFERENCES
For information on using JScript, refer to the documentation available at the following Web site:
For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:
Modification Type: | Major | Last Reviewed: | 5/11/2006 |
---|
Keywords: | kbcode kbprb KB183617 |
---|
|