Programmatically triggering events in Javascript for IE using jQuery

后端 未结 6 1044
陌清茗
陌清茗 2021-01-04 19:22

When an Event is triggered by a user in IE, it is set to the window.event object. The only way to see what triggered the event is by accessing the window.

6条回答
  •  我在风中等你
    2021-01-04 20:10

    I solved the issue with a patch:

        window.ValidatorHookupEvent = function(control, eventType, body) {
            $(control).bind(eventType.slice(2), new Function("event", body));
        };
    

    Update: I've submitted the issue to MS (link).

提交回复
热议问题