tailieunhanh - Javascript bible_ Chapter 14

Tham khảo sách 'javascript bible_ chapter 14', 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ả | The Window Object 1 quick look at the Netscape document object model diagram in Chapter 13 Figure 13-1 reveals that the window object is the outermost most global container of all document-related objects in the JavaScript world. All HTML and JavaScript activity takes place inside a window. That window may be a standard Windows Mac or Xwindows application-style window complete with scrollbars toolbars and other chrome if you have Navigator 4 or Internet Explorer 4 running in certain modes the window may appear in the guise of the underlying desktop itself. A frame is also a window even though it doesn t have many accoutrements beyond scrollbars. The window object is where everything begins in JavaScript and this chapter begins the in-depth investigation of JavaScript objects with the window. Of all the Navigator document model objects the window object has by far the most terminology associated with it. This necessitates an abnormally long chapter to keep the discussion in one place. Use the running footers as a navigational aid through this substantial collection of information. Window Terminology The window object is often a source of confusion when you first learn about the document object model. A number of synonyms for window objects muck up the works top self parent and frame. Aggravating the situation is that these terms are also properties of a window object. Under some conditions a window is its own parent but if you define a frameset with two frames there is only one parent among a total of three window objects. It doesn t take long before the whole subject can make your head hurt. If you do not use frames in your Web applications all of these headaches never appear. But if frames are part of your design plan you should get to know how frames affect the object model. In This Chapter Scripting communication among multiple frames Creating and managing new windows Controlling the size position and appearance of the browser window 168 Part III JavaScript .

TỪ KHÓA LIÊN QUAN