TAILIEUCHUNG - JavaScript Bible, Gold Edition part 38

JavaScript Bible, Gold Edition part 38. 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. | 218 Part III Document Objects Reference Frames The application of frames has become a religious issue among Web designers some swear by them while others swear at them. I believe there can be compelling reasons to use frames at times. For example if you have a document that requires considerable scrolling to get through you may want to maintain a static set of navigation controls visible at all times. By placing those controls be they links or image maps in a separate frame you have made the controls available for immediate access regardless of the scrolled condition of the main document. Creating frames The task of defining frames in a document remains the same whether or not you re using JavaScript. The simplest framesetting document consists of tags that are devoted to setting up the frameset as follows HTML HEAD TITLE My Frameset TITLE HEAD FRAMESET FRAME NAME Frame1 SRC FRAME NAME Frame2 SRC FRAMESET HTML The preceding HTML document which the user never sees defines the frameset for the entire browser window. Each frame must have a URL reference specified by the SRC attribute for a document to load into that frame. For scripting purposes assigning a name to each frame with the NAME attribute greatly simplifies scripting frame content. The frame object model Perhaps the key to successful frame scripting is understanding that the object model in the browser s memory at any given instant is determined by the HTML tags in the currently loaded documents. All canned object model graphics such as Figure 16-1 in this book do not reflect the precise object model for your document or document set. Window Document Figure 16-1 The simplest window-document relationship Chapter 16 Window and Frame Objects 219 For a single frameless document the object model starts with just one window object which contains one document as shown in Figure 16-1. In this simple structure the window object is the starting point for all references to any loaded .

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.