Standardize DOM event on IE8+