Home >Web Front-end >JS Tutorial >Summary of js script code compatible with IE and FF (commonly used)_javascript skills
/*In the following, IE is used instead of Internet Explorer, and MF/FF is used instead of Mozzila Firefox */
//window.event
IE: There is a window.event object
FF: There is no window.event object. Event objects can be passed as arguments to functions. Such as onmousemove=doMouseMove(event)
Solution: var event = event || window.event;
example: