Joined March 2012
·

Jimmy Chan

Web Developer at LinkedIn
·
Mountain View
·
·

@nafaabout Thanks! I knew about dispatchEvent but didn't know you could trigger built-in methods with it. Older IE versions seem to support fireEvent but I'm not sure if they support something like new MouseEvent('click').

Re-reading this today and with your comment, I think "The Future" should really be using the native customEvent, using dispatchEvent and dropping support for IE <8.

Achievements
515 Karma
139,431 Total ProTip Views