Cross-Browser Solution For addEventListener & attachEvent functions

addEventListener() and attachEvent() these two methods (functions) are used to apply event on Html element. It is considered a secure way to apply JS events. addEventListener() supports 9.0 or higher versions of internet explorer and all modern browsers. To remove the functionality of addEventListener, we use removeEventListener(). addEventListener syntax We don’t write prefix like on … Read more Cross-Browser Solution For addEventListener & attachEvent functions