Javascript & DHTML DOM Basics and Basic API 1th/5 page _javascript Tips

Source: Internet
Author: User
Tags object model
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.