TAILIEUCHUNG - JavaScript Bible, Gold Edition part 42

JavaScript Bible, Gold Edition part 42. 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. | 258 Part III Document Objects Reference Example with Listing 16-21 on the CD-ROM On the CD-ROm Related Items methods. clearInterval intervalIDnumber Returns Nothing. NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility Use the method to turn off an interval loop action started with the method. The parameter is the ID number returned by the setInterval method. A common application for the JavaScript interval mechanism is animation of an object on a page. If you have multiple intervals running each has its own ID value in memory. You can turn off any interval by its ID value. As soon as an interval loop stops your script cannot resume that interval It must start a new one which generates a new ID value. Example on the CD-ROM On the CD-ROM Related Items methods. clearTimeout timeoutIDnumber Returns Nothing. NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility Use the method in concert with the window. setTimeout method as described later in this chapter when you want your script to cancel a timer that is waiting to run its expression. The parameter for this method is the ID number that the method returns when the timer starts ticking. The clearTimeout method cancels the specified timeout. A good practice is to check your code for instances where user action may negate the need for a running timer and to stop that timer before it goes off. w ndowO6 Chapter 16 Window and Frame Objects 259 On h Example with Figure 16-11 and Listing 16-22 on the CD-ROM Related Items method. close Returns Nothing. NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility The method closes the browser window referenced by the window object. Most likely you will use this method to close

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.