tailieunhanh - JavaScript Bible, Gold Edition part 79
JavaScript Bible, Gold Edition part 79. 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. | 628 Part III Document Objects Reference section elements. They re all lumped together and they bear the same properties and methods. With its strong adherence to the W3C DOM the NN6 DoM sticks to the W3C DOM object constructions. When you work in both the IE and W3C DOMs at the same time it s helpful to know the relationships between the object naming conventions used in each. Table 27-2 provides a quick cross-reference between the object types in both DOMs. None of terminology in Table 27-2 affects the way scripts construct references to elements or the way elements are nested within one another. The containment hierarchy is driven by the HTML element containment and that remains the same regardless of DOM exposure. Table 27-2 Table Object Classifications W3C DOM NN6 IE4 and HTML HTMLTableElement TABLE HTMLTableCaptionElement CAPTION HTMLTableColElement COL COLGROUP HTMLTableSectionElement TBODY TFOOT THEAD HTMLTableRowElement TR HTMLTableCellElement TD TH While the following object-specific discussions list the objects according to their HTML tag name I group these objects according to the W3C DOM classifications because element objects that share a classification also share the same properties methods and event handlers. TABLE Element Object For HTML element properties methods and event handlers see Chapter 15. Properties Methods Event Handlers align createCaption onScroll background createTFoot bgColor createTHead border deleteCaption borderColor deleteRow borderColorDark deleteTFoot borderColorLight deleteTHead caption firstPage TABLE Chapter 27 Table and List Objects 629 Properties Methods Event Handlers cellPadding insertRow cellSpacing lastPage cells moveRow col s nextPage datePageSize previousPage frame refresh height rows rules summary tBodies tFoot tHead width Syntax Accessing TABLE element object properties and methods IE4 window. method parameters IE5 NN6 window. e emID .property method parameters .
đang nạp các trang xem trước