JavaScript Reference/Javascript Methods/insertRow — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:22, 26 мая 2010
"insertRow()" Example
<source lang="javascript">
<html> <body> <script language="JavaScript"> function function1() {
var myRow = document.all.myTable.insertRow(); var myCell = myRow.insertCell(); myCell.innerText = "The added cell";
} </script>
3 | 4 |
1 | 2 |
<button onclick="function1();">Add a cell</button> </body> </html>
</source>
"insertRow()" is applied to
<source lang="javascript">
Names noted with an asterisk (*) are JavaScript properties only. +----------------+--------------------------------------------------------------+
| Applied_To |rows*