JavaScript Bible, Gold Edition part 177

JavaScript Bible, Gold Edition part 177. 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-252 Part VI Appendixes Example Use the page from Listing 15-47 to see how the onSelectStart event handler works when a user selects across multiple elements on a page. As the user begins a selection anywhere on the page the ID of the object receiving the event appears in the status bar. Notice that the event doesn t fire until you actually make a selection. When no other element is under the cursor the BODY element fires the event. Listing 15-47 Using the onSelectStart Event Handler HTML HEAD TITLE onSelectStart Event Handler TITLE STYLE TYPE text css TD text-align center STYLE SCRIPT LANGUAGE JavaScript function showObj var objID status Selection started with object objID SCRIPT HEAD BODY ID myBody onSelectStart showObj H1 ID myH1 onSelectStart Event Handler H1 HR ID myHR P ID myP This is a sample paragraph. P TABLE BORDER 1 TR ID row1 TH ID header1 Column A TH TH ID header2 Column B TH TH ID header3 Column C TH TR TR ID row2 TD ID cellA2 text TD TD ID cellB2 text TD TD ID cellC2 text TD TR TR ID row3 TD ID cellA3 text TD TD ID cellB3 text TD TD ID cellC3 text TD TR TABLE BODY HTML Appendix F Examples from Parts III and IV CD-253 Chapter 16 Examples The following sections contain examples from Chapter 16 Window and Frame Objects. Window Object Properties clipboardData NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility Example See Listings 15-30 and 15-39 to see how the clipboardData object is used with a variety of edit-related event handlers. closed NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility Example In Listing 16-4 I have created the ultimate cross-platform window opening and closing sample. It takes into account the lack of the opener property in Navigator 2 the missing closed property in Navigator 2 and Internet Explorer 3 and it even provides an ugly but necessary workaround for the inability of Internet Explorer 3 to gracefully see if a subwindow is still open. The script begins by .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
12    26    1    02-12-2024
Đã 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.