tailieunhanh - JavaScript 1.5 - Lab 7

Trong phòng thí nghiệm này, bạn sẽ tìm hiểu làm thế nào để sử dụng khung và sinh ra các cửa sổ có hiệu quả. Thông qua quá trình phòng thí nghiệm, bạn sẽ cải thiện khi một lịch đơn giản bằng cách thêm một khung cửa sổ pop-up lựa chọn ngày và thông tin về một danh sách giới hạn của ngày lễ. Để hoàn thành phòng thí nghiệm, bạn sẽ cần phải làm việc thông qua hai bài tập: Các lựa chọn ngày Khung hình quan trọng ngày Pop-Up Thông tin Mỗi tập thể dục bao gồm một phần "Mục tiêu" mô tả mục. | Windows and Frames Answers 1. How do you open a new window from within your scripts By invoking the method. 2. True False You must always assign the return value of to a variable. False. It is perfectly acceptable to not assign the return value to a variable if you don t intend to reference the new window in your scripts. 3. What is the easiest way to dynamically create content for a spawned window By building a dynamic HTML string that defines the content of the new page and writing it to the new window through its method. 4. Which property enables a new window to reference the window that created it The opener property 5. What is the term for a frame that is created by a frameset Child frame 6. Which property enables a frame to access the document that created it The parent property 7. Which property enables a frame to access the highest object in its object hierarchy The top property 8. True False An iframe is constrained to the edges of the document area of a window. False. An iframe can float anywhere within the document that you chose to define it. Feb 19 2008 3 29PM Dao Dung dungdq@ For productevaluation only- nOt for distribution or commercial use. JavaScript Copyright 2003 by Application Developers Training Company All rights reserved. Reproduction is strictly prohibited. The Window Object Lab 7 Windows and Frames TIP Because this lab includes a great deal of typed code we ve tried to make it simpler for you. You will find all the code in Windows and and in the same directory as the sample project. To avoid typing the code you can cut paste it from the source files instead. Feb 19 2008 3 29PM Dao Dung dungdq@ For productvevaluation only- nOt for distribution or commercial use. Copyright 2003 by Application Developers Training Company All rights reserved. Reproduction is strictly prohibited. 7-23 Lab 7 .