Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use event.originalEvent?

Tags:

javascript

I'm trying to find out browser compatibility for the event originalEvent. And looked in various places but couldn't find about it.

This answer's link also has no information.

I also checked in can i use but there's also no information.

So, I would like to know how much I'm safe to use originalEvent?

like image 217
gacat Avatar asked Jan 01 '26 02:01

gacat


1 Answers

Looking for the jQuery docs you can find this:

When the browser triggers an event or other JavaScript calls jQuery's .trigger() method, jQuery passes the handler an Event object it can use to analyze and change the status of the event. This object is a normalized subset of data provided by the browser; the browser's unmodified native event object is available in event.originalEvent.

Therefore this is not usable outside of a jQuery element as this is only to access the actual native event.

like image 188
GMaiolo Avatar answered Jan 03 '26 14:01

GMaiolo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!