JavaScript Reference/Javascript Methods/createTHead — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:22, 26 мая 2010
"createTHead()" Example
<source lang="javascript">
<html> <body> <script language="JavaScript"> function function1() {
var m = document.all.myTable.createTFoot(); m.bgColor = "red";
} function function2() {
var n = document.all.myTable.createTHead(); n.bgColor = "yellow";
} </script>
Cell 1 | Cell 2 |
---|---|
Cell 3 | Cell 4 |
<input type="button" value="Create foot and set color to red" onclick="function1();"> <input type="button" value="Create head and set color to yellow" onclick="function2();"> </body> </html>
</source>
"createTHead()" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+
| Applied_To |