英 [in?s?:t r?u] US [?n?s?t ro]
[??] ? ??
?????? insertRow() ??? ???
??: ???? ??? ??? ? ?? ???? ? ?????.
??: ??tableObject.insertRow(index)
??: ?? ??? ?? ???? TableRow? ?????.
??: ? ???? ? <tr> ??? ???? ? TableRow ??? ???? ?? ???? ??? ??? ?????. ? ?? ???? ? ?? ?????. index? ???? ? ?? ??? ? ?? ??? ?? ?????. ???? ?? ??? ? ?? ? <tbody> ??? ???? ? ?? ??? ???? ?????.
??: TableRow.insertCell() ???? ???? ?? ??? ?? ???? ??? ? ????.
?????? insertRow() ??? ?
<html> <head> <script type="text/javascript"> function insRow() { document.getElementById('myTable').insertRow(0) } </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> </table> <br /> <input type="button" onclick="insRow()" value="Insert new row"> </body> </html>
???? ?? ?
??? ????? ??? "???? ??" ??? ?????