HTML DOM Table Object>>

Table Object

The Table object represents an HTML table. For each instance of an HTML <table> tag in a document, a Table object is created.

IE: Internet Explorer, F: Firefox, N: Netscape, W3C: World Wide Web Consortium (Internet Standard).

Table Object Collections

Collection Description IE  F N W3C
cells[] Returns an array containing each cell in the table 5     No
rows[] Returns an array containing each row in the table 4 1 6 Yes
tBodies[] Returns an array containing each tbody the table 4     Yes

Table Object Properties

Property Description IE  F N W3C
accessKey Sets or returns the keyboard key to access the table 4     No
align Sets or returns the alignment of the table according to the surrounding text 4 1 6 Yes
background Sets or returns the background image of the table 4     No
bgColor Sets or returns the background color of the table 4 1 6 Yes
border Sets or returns the width of the table border 4 1 6 Yes
borderColor Sets or returns the color of the table border 5     No
caption Sets or returns the caption of the table 4 1 6 Yes
cellPadding Sets or returns the amount of space between the cell border and cell content 4 1 6 Yes
cellSpacing Sets or returns the amount of space between cells in the table 4 1 6 Yes
cols Sets or returns the number of columns in the table 4     No
disabled Sets or returns whether or not the table should be disabled 5     No
frame Sets or returns which borders to render around the table 4 1 6 Yes
height Sets or returns the height of the table 4 1 6 Yes
id Sets or returns the id of the table (In IE 4 this property is read-only) 4 1   No
rules Sets or returns which inner-borders to display in a table 4 1 6 Yes
summary Sets or returns a description of the table 6 1 6 Yes
tabIndex Sets or returns the tab order for the table 4     No
tFoot Returns the TFoot object of the table 4 1 6 Yes
tHead Returns the THead object of the table 4 1 6 Yes
width Sets or returns the width of the table 4 1 6 Yes

Table Object Methods

Method Description IE F N W3C
blur() Removes focus from the table 4     No
click() Simulates a mouse-click on the table 4     No
createCaption() Creates an empty caption element in the table 4 1 6 Yes
createTFoot() Creates an empty tFoot element in the table 4 1 6 Yes
createTHead() Creates an empty tHead element in the table 4 1 6 Yes
deleteCaption() Deletes the caption element and its content from the table 4 1 6 Yes
deleteRow() Deletes a specified row from the table 4 1 6 Yes
deleteTFoot() Deletes the tFoot element and its content from the table 4 1 6 Yes
deleteTHead() Deletes the tHead element and its content from the table 4 1 6 Yes
focus() Sets focus on the table 4     No
insertRow() Inserts a new row in the table 4 1 6 Yes
moveRow(from,to) Moves a row to a new position 5     No
refresh() Refreshes the content of the table 4     No

Table Object Events

Syntax: object.event_name="someJavaScriptCode"

Event Description IE F N W3C
onBlur Executes some code when the table loses focus 4      
onClick Executes some code when the user clicks on the table 4      
onFocus Executes some code when the table gets focus 4      
onSelectStart Executes some code when the table is selected 4      

 

<< Back








   



MSN Nick Name



More Resources...





Most Viewed Services:
  1. HTML Tutorial
  2. XHTML Tutorial
  3. CSS Tutorial
  4. Javascript Tutorial
  5. DHTML Tutorial
  6. VB Script
  7. TCP/IP Tutorial
  8. ADO Tutorial
  9. MYSQL Tutorial
  10. ASP Tutorial
  11. AJAX Tutorial
  12. CFML Tutorial
  13. PHP Tutorial
  14. WML Tutorial
  15. FLASH Tutorial
  16. XML Tutorial
  17. RSS Tutorial
  18. SQL Tutorial
  19. HTML Articles
  1. Javascript Articles
  2. PHP Articles
  3. SEO Articles
  4. Web Design Articles
  5. SEO Tips
  6. Web Design Tips
  7. Articles
  8. CSS
  9. CSS Tips
  10. HTML Tips
  11. JAVASCRIPT Tips
  12. MYSQL Tips
  13. PHP Tips
  14. Money
  15. Tutorials
  16. Web Hosting



  • Home
  • Web Directory
  • Top Directoriers
  • Webmaster Directories
  • Contact
  • © Copyright 2006 All Rights Reserved By CodeDcode.Com