One, what is DOM?
What do you mean Dom,dom is the Document Object model, a set of API interfaces that are based on browser programming (in this tutorial, DHTML programming), the recommended standards for the Web, and each browser has some subtle differences, One of Mozilla's browsers is closest to the standard. Simple JavaScript can be used to make DHTML programming with DOM in order to make a beautiful effect and apply it to the Web. This is almost the same as any other language, just as C + + requires library support. Otherwise, it is simply to do research in grammar. Therefore, you must have some knowledge of the DOM to apply JavaScript to the Web, or to your RIA application, because DHTML is essentially manipulating the DOM tree.
Later in the program, I hope you will be able to take dhtml.chm this manual also, if you need to be compatible with Gecko, put the Gecko Dom manual also. Because the API is too many, can not think of the interface may also look up this manual.
If you want to test whether the browser is support DOM, a simple sentence can be judged
<script> var issupportdom =!! document.getElementById; Two counter, which has already been mentioned in the previous section, means forced transformation alert ("Your browser" + (issupportdom? "": NO) + "support dom! "); </script>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
Current 1/5 page
12345 Next read the full text