Home >Web Front-end >JS Tutorial >Dom and browser compatibility instructions_DOM
As a web front-end worker, are you often confused by browser compatibility issues at work? For example, CSS style? It is obvious that the normal web page is displayed in IE browser. When it comes to FireFox or Google Chrome, it's a mess. Maybe you have encountered similar problems when using JavaScript and Dom to write web page scripts. Obviously, the script runs normally in the FireFox browser. An error occurred in IE. For example, get the source target that triggers the js event. There are also issues with mouse position or element position. Dynamically bind events to elements, etc. . . I will list below the incompatibility issues of some Dom commands in browsers such as IE and FireFox!
Limited by space. I will not give a detailed explanation of the Dom instructions mentioned on this page. Please click on the relevant command name to learn detailed explanations and examples.
When using JavaScript to obtain the source target of the triggered event, IE and FireFox behave differently, that is to say which element in the web page triggered the event
Problems using Dom to obtain and change text within web page tag elements
Mouse position within the element
Problems with dynamically binding and deleting events for web pages or elements
To be continued... Director Kang on: 2010-07-24