Javascript bible_ Chapter 11

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 FRAME NAME rightFrame SRC FRAMESET HTML This HTML splits the browser window into two frames side by side with a .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
20    86    1    27-06-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.