JavaScript Reference/Javascript Methods/createTHead
Версия от 21:30, 25 мая 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 |