Đang chuẩn bị liên kết để tải về tài liệu:
Javascript bible_ Chapter 11

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Tham khảo sách 'javascript bible_ chapter 11', 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ả | Scripting Frames and Multiple Windows One of the cool aspects of JavaScript on the client is it allows user actions in one frame or window to influence what happens in other frames and windows. In this section of the tutorial you extend your existing knowledge of object references to the realm of multiple frames and windows. Frames Parents and Children You probably noticed that at the top of the Navigator document object hierarchy diagram refer back to Figure 8-1 the window object has some other object references associated with it. Back in Chapter 8 you learned that self is synonymous with window when the reference applies to the same window that contains the script s document. In this lesson you ll learn the roles of the other three object references frame top and parent. Loading an ordinary HTML document into the browser creates a model in the browser that starts out with one window object and the document it contains the document likely contains other elements but I m not concerned with that stuff yet . The top rungs of the hierarchy model are as simple as can be as shown in Figure 11-1. This is where references begin with window or self or with document since the current window is assumed . In This Chapter Relationships among frames in the browser window How to access objects and values in other frames How to control navigation of multiple frames Communication skills between separate windows Figure 11-1 Single-frame window and document hierarchy 2 Part II JavaScript Tutorial The instant a framesetting document loads into a browser the browser starts building a slightly different hierarchy model. The precise structure of that model depends entirely on the structure of the frameset defined in that framesetting document. Consider the following skeletal frameset definition HTML FRAMESET COLS 5Q 5Q FRAME NAME leftFrame SRC somedoc1.html FRAME NAME rightFrame SRC somedoc2.html FRAMESET HTML This HTML splits the browser window into two frames side by side with a .