TAILIEUCHUNG - JavaScript Bible, Gold Edition part 18

JavaScript Bible, Gold Edition part 18. This book will bring programmers and non-technical professionals, including casual programmers and scripters, painlessly up to speed on all aspects of mastering JavaScript. Key topics include programming fundamentals, JavaScript language elements and how to use them effectively, and how to easily and efficiently add powerful new functionality to HTML documents and Java applets. | CD-100 Part II JavaScript Tutorial Window Figure 11-1 Single-frame window and document hierarchy Document 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 C0LS 50 50 FRAME NAME leftFrame SRC FRAME NAME rightFrame SRC FRAMESET HTML This HTML splits the browser window into two frames side by side with a different document loaded into each frame. The model is concerned only with structure it doesn t care about the relative sizes of the frames or whether they re set up in columns or rows. Framesets establish relationships among the frames in the collection. Borrowing terminology from the object-oriented programming world the framesetting document loads into a parent window. Each of the frames defined in that parent window document is a child frame. Figure 11-2 shows the hierarchical model of a two-frame environment. This illustration reveals a lot of subtleties about the relationships among framesets and their frames. FRAMESET Top Parent FRAME FRAME Figure 11-2 Two-frame window and document hierarchy Child Frame Document Chapter 11 Scripting Frames and Multiple Windows CD-101 It is often difficult at first to visualize the frameset as a window object in the hierarchy. After all with the exception of the URL showing in the Location Address field you don t see anything about the frameset in the browser. But that window object exists in the object model. Notice too that in the diagram the framesetting parent window has no document object showing. This may also seem odd because the window obviously requires an HTML file containing the specifications for the frameset. In truth the parent window has a document object associated with it but it is omitted from the diagram to better portray

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.