createCaption
The createCaption method can be used to create a <CAPTION> element for the referenced <TABLE> element. If one already exists, then the method returns a pointer to it. For example:
elCaption=document.all("tblExample").createCaption()
would create and empty <CAPTION> element for the <TABLE> element referenced by ...all("tblExample"). This new <CAPTION> element can then be manipulated using the various methods and properties of the <CAPTION> element (see that element for details).
createTFoot
The createTFoot method can be used to create a <TFOOT> element for the referenced <TABLE> element. If one already exists, then the method returns a pointer to it. For example:
elTFoot=document.all("tblExample").createTFoot()
would create and empty <TFOOT> element for the <TABLE> element referenced by ...all("tblExample"). This new <TFOOT> element can then be manipulated using the various methods and properties of the <TFOOT> element (see that element for details).
createTHead
The createTHead method can be used to create a <THEAD> element for the referenced <TABLE> element. If one already exists, then the method returns a pointer to it. For example:
elTHead=document.all("tblExample").createTHead()
would create and empty <THEAD> element for the <TABLE> element referenced by ...all("tblExample"). This new <THEAD> element can then be manipulated using the various methods and properties of the <THEAD> element (see that element for details).
deleteCaption
The deleteCaption method can be used to delete an existing <CAPTION> element for the referenced <TABLE> element (either one that is there in the document source, or one created with the createCaption method. For example:
document.all("tblExample").deleteCaption()
deletes the existing (or created) <CAPTION> element for the <TABLE> element referenced by ...all("tblExample").
deleteRow
The deleteRow method deletes the row referenced by the index argument for the referenced <TABLE> element, also removing it from the Rows Collection for the <TABLE> element. Note that when using the deleteRow method for the <TABLE> element, the rowIndex property of the <TR> element to be deleted must be used. For example:
document.all("tblExample").deleteRow(1)
would delete the second <TR> element contained in the <TABLE> element, whether it's in a <THEAD>, <TBODY>, or <TFOOT> section of the <TABLE>
deleteTFoot
The deleteTFoot method can be used to delete an existing <TFOOT> element for the referenced <TABLE> element (either one that is there in the document source, or one created with the createTFoot method. For example:
document.all("tblExample").deleteTFoot()
deletes the existing (or created) <TFOOT> element for the <TABLE> element referenced by ...all("tblExample").
deleteTHead
The deleteTHead method can be used to delete an existing <THEAD> element for the referenced <TABLE> element (either one that is there in the document source, or one created with the createTHead method. For example:
document.all("tblExample").deleteTHead()
deletes the existing (or created) <THEAD> element for the <TABLE> element referenced by ...all("tblExample").
insertRow
The insertRow method inserts a new <TR> element into the referenced <TABLE> element. It can take an optional index argument which should specify where in the <TABLE> the new row is to be inserted. Note that inserting a new row into a <TABLE> element also inserts it into the Rows Collection for the <TABLE> element. For example:
rowNew=document.all("tblExample").insertRow(3)
inserts a new fourth row into the main <TABLE> element, which may impact the Rows Collection for the <THEAD>, <TBODY>, or <TFOOT> elements, depending on the number of rows in each section.