Home > Article > Web Front-end > JS event Event element (compatible with IE, Firefox, Chrome)_javascript skills
Good programs are often compatible with multiple browsers.
Look at the following example:
A simple button, we can click the button below to get the current button element directly through the event object, which is compatible with multiple browsers. Of course, other element events are written in the same way.