Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

window.fireEvent and window.dispatchEvent are both undefined in IE8

I've just discovered that both window.fireEvent and window.dispatchEvent are undefined in IE8, however document.fireEvent exists.

So how on earth do I trigger events for the window element in IE8?...

like image 276
balupton Avatar asked Apr 01 '11 02:04

balupton


1 Answers

It's impossible. The way jQuery etc does this is by virtually emitting events within jQuery, rather than using the native event emitting.

like image 81
balupton Avatar answered Jan 03 '23 13:01

balupton