写了一个OCX控件,在OCX控件中触发一事件,在IE11之前的版本使用attachEvent注册一个回调函数后IE11可以捕获到事件,但IE11中提示attachEvent不支持.
In IE11, the attachEvent has been dropped in favour of addEventListener.
Nevertheless, when I replace all the attachEvent instances that were used to bind to events triggered by the activeX, such events are no longer triggered.
Here are some html code examples that illustrate the problem.
(I have created a simple activeX based on an MFC activeX control that simply triggers an event inside OnCreate. This event sends 2 strings as parameters. If you need the code or even the ocx file for the activeX, please let me know.)
Test 1 uses the "for" tag to setup the ca