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.