IE: There is an object
FF: No object. The event object can be passed to the parameter of the function. For example, onmousemove=doMouseMove(event)
Current mouse coordinates
IE: and.
FF: and.
General: Both have attributes.
The current coordinate of the mouse (plus the distance scrolled by the scroll bar)
IE: and.
FF: and.
The coordinate positions of x and y of the label: and
IE: Yes.
FF: No.
General: and.
The height and width of the form
IE: and. Note: The page must have a body tag at this time.
FF: and, and.
General: and.
Add Event
IE:("onclick", func);。
FF:("click", func, true)。
General: =func. Although both can use onclick events, the effects of onclick and the above two methods are different. Onclick only executes one process, while attachEvent and addEventListener execute a list of procedures, that is, multiple processes. For example: ("onclick", func1); ("onclick", func2) In this way, both func1 and func2 are executed.
Custom properties of tags
IE: If a property value is defined for tag div1, you can get the value with div1["value"].
FF: Cannot be used with div1["value"].
General: ("value").
Parent, child, and delete nodes
IE:parentElement、,(true)。
FF:parentNode、,(node)。
Draw pictures
IE:VML。
FF:SVG。
CSS: Transparent
IE:filter:progid:(style=0,opacity=60)。
FF:opacity:0.6。
CSS: Rounded corners
IE: No rounded corners are supported.
FF: -moz-border-radius:4px, or -moz-border-radius-topleft:4px; -moz-border-radius-topright:4px; -moz-border-radius-bottomleft:4px; -moz-border-radius-bottomright:4px;.
CSS: Double-line concave and convex border
IE:border:2px outset;。
FF:-moz-border-top-colors: #d4d0c8 white;-moz-border-left-colors: #d4d0c8 white;-moz-border-right-colors:#404040 #808080;-moz-border-bottom-colors:#404040 #808080;。