Domain and web hosting - Window and Frame Objects Aquick look at the
Window and Frame Objects Aquick look at the basic document object model diagram in Chapter 14 (Figure 14-1) reveals that the window object is the outermost, most global container of all document-related objects that you script with JavaScript. 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; you can also generate windows that have only some of a typical window s chrome. A frame is also a window, even though a frame doesn t have many accoutrements beyond scrollbars. The window object is where everything begins in JavaScript references to object. IE4+ and NN6 treat the frameset as a special kind of windowobject, so that it is also covered in this chapter. Of all the objects associated with browser scripting, the window and window-related objects have by far the most object-specific terminology associated with them. This necessitates a rather 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 syn onyms for windowobjects muck up the works: top, self, parent, and frame. Aggravating the situation is that these terms are also properties of a windowobject. Under some con ditions, a window is its own parent, but if you define a frame- set with two frames, you have only one parent among a total of three windowobjects. 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. 16 CHAPTER …. In This Chapter Scripting communication among multiple frames Creating and managing new windows Controlling the size, position, and appearance of the browser window Details of Window, FRAME, FRAMESET, and IFRAME objects ….
Please visit our professional web hosting services to find out about cheap and reliable webhost service that will surely answer all your demands.