TAILIEUCHUNG - JavaScript Bible, Gold Edition part 14

JavaScript Bible, Gold Edition part 14. 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-60 Part II JavaScriptTutorial 3. Devise your own syntax for the scenario of looking for a ripe tomato at the grocery store and write a for loop using that object and property syntax. 4. Modify Listing 7-2 so it does not reuse the hisDog variable inside the function. 5. Given the following table of data about several planets of our solar system create a Web page that enables users to enter a planet name and at the click of a button have the distance and diameter appear either in an alert box or as extra credit in separate fields of the page. Planet Distance from the Sun Diameter Mercury 36 million miles 3 100 miles Venus 67 million miles 7 700 miles Earth 93 million miles 7 920 miles Mars 141 million miles 4 200 miles C Window and Document Objects Now that you have exposure to programming fundamentals it is easier to demonstrate how to script objects in documents. Starting with this lesson the tutorial turns back to the document object model diving more deeply into each of the objects you will place in many of your documents. Document Objects As a refresher study the lowest common denominator document object hierarchy in Figure 8-1. This chapter focuses on objects at or near the top of the hierarchy window location history and document. The goal is not only to equip you with the basics so you can script simple tasks but also to prepare you for in-depth examinations of each object and its properties methods and event handlers in Part III of this book. I introduce only the basic properties methods and event handlers for objects in this tutorial you can find far more in Part III. Examples in that part of the book assume you know the programming fundamentals covered in previous chapters. H A P T E R In This Chapter What the wi ndow object does How to access key window object properties and methods How to trigger script actions after a document loads The purposes of the location and history objects How the document object is created How to access key document object .

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.