Tham khảo sách 'javascript bible_ chapter 43', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Microsoft Dynamic HTML When comparing the implementation of Dynamic HTML in Navigator 4 and Internet Explorer 4 you get the impression that Internet Explorer 4 s DHTML is more flexible and better integrated into the whole of authoring for the browser. Some of this advantage comes from being a more recent product in the game of leapfrog that Microsoft and Netscape play with browser and technology releases. Internet Explorer 4 s style sheets use the Cascading Style Sheets CSS recommendation as a basis for its extensions. The same is true for the CSS-Positioning CSS-P capabilities in the browser. Authors however pay a price for the flexibility built into Internet Explorer 4. The extensive object model and its large complement of properties methods and event handlers creates an enormous vocabulary to get to know and work with. Experienced scripters may not have a problem with this because knowing where to look for information is almost second nature. But newcomers or those upgrading their skills from HTML to DHTML and scripting have much to become acquainted with before feeling comfortable in the environment. Internet Explorer 4 Document Object Model At the core of Internet Explorer s DHTML and scripting functionality is an impressive document object model. In addition to the typical object containment hierarchy in use since the earliest days of JavaScript Internet Explorer 4 also turns every document element that can be contained within a tag pair into a scriptable object. This includes style tags such as B . B as well as the more obvious block tags such as P . P . Each of these objects has a set of properties methods and event handlers. In This Chapter The Internet Explorer document object model Working with the style object for dynamic content and styles The map game tailored for Internet Explorer 4 892 Part IV Putting JavaScript to Work A typical object To give you an idea of the kinds of properties methods and event handlers assigned to a tag as simple as the bold