Firefox uses an event argument, which is passed to the event function
Change your code:
window.onload = function() {
_eventButtonElement = window.event.srcElement;
};
For this:
window.onload = function(e) {
_eventButtonElement = window.event.srcElement || e.target;
};
source
share