Đang chuẩn bị liên kết để tải về tài liệu:
JavaScript Bible, Gold Edition part 46

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

JavaScript Bible, Gold Edition part 46. 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. | 298 Part III Document Objects Reference Note Resizing the Navigator 4 browser window especially if that window contains positioned elements as DIV or LAYER elements causes serious problems not only for the content but also for scripts in the page. Content can get jumbled and scripts may disappear. Your only hope is to use an onResize event handler to reload the page and get back to a known point. For some ideas on handling this problem see the article at http developer.netscape.com viewsource goodman_resize goodman_resize.html. One point not covered in the article is that the Windows version of NN4 issues a resize event when scroll bars appear in a window. This resize event can make any reload-on-resize strategy turn into an infinite loop. To guard against this you have to inspect the window.innerWidth and window.innerHeight properties to see if the window has really changed the property values don t change when the scrollbars appear . Here is an example of script statements that go in the Head script of a page that has to worry about this problem in NN4 var Nav4 navigator.appName Netscape parselnt navigator.appVersion 4 if Nav4 var loadWidth window.innerWidth var loadHeight window.innerHeight function restore if loadWidth window.innerWidth loadHeight window.innerHeight history.go O if Nav4 window.onresize restore Related Items event object Chapter 29 . onUnload NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 IE5.5 Compatibility An unload event reaches the current window just before a document is cleared from view. The most common ways windows are cleared are when new HTML documents are loaded into them or when a script begins writing new HTML on the fly for the window or frame. Limit the extent of the onUnload event handler to quick operations that do not inhibit the transition from one document to another. Do not invoke any methods that display dialog boxes. You specify onUnload event handlers in the same places in an HTML document as the onLoad handlers as a BODY tag .

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.