javascript deleteTFoot() method
Translation results:
delete
UK[dɪˈli:t] US[diˈlit]
vt.& vi.Delete
Third person singular: deletes now Participle: deleting Past tense: deleted Past participle: deleted
foot
## English[fʊt] US[fʊt] n.Foot; bottom; Feet (= 12 inches or 30.48 centimeters); stepsvt. Walk, stepvt.& vi. Settlement, total, total Third person singular: feet Plural: feet Present participle: footing Past tense: footed Past participle: footedjavascript deleteTFoot() methodsyntax
Function:Used to delete the <tfoot> element from the table.
Syntax: tableObject.deleteTFoot()
Description: If the table has a <tfoot> element, delete it from Document is deleted, otherwise nothing is done.
javascript deleteTFoot() methodexample
<html> <head> <script type="text/javascript"> function delRow() { document.getElementById('myTable').deleteTFoot() } </script> </head> <body> <table id="myTable" border="1"> <tr> <td>Row1 cell1</td> <td>Row1 cell2</td> </tr> <tr> <td>Row2 cell1</td> <td>Row2 cell2</td> </tr> <tfoot><td>my table foot</td></tfoot> </table> <br /> <input type="button" onclick="delRow()" value="Delete table foot"> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance