Objek HTML DOM TBody
Objek TBody
Objek TBody mewakili elemen <tbody> HTML.
Mengakses Objek TBody
Anda dapat mengakses elemen <tbody> dengan menggunakan getElementById():
Contoh
var x = document.getElementById("myTBody");
Buat Objek TBody
Anda dapat membuat elemen <tbody> dengan menggunakan metode document.createElement() :
Contoh
var x = document.createElement("TBODY");
Properti Objek TBody
Property | Description |
---|---|
align | Not supported in HTML5. Use style.textAlign instead. Sets or returns the horizontal alignment of the content inside the tbody element |
ch | Not supported in HTML5. Sets or returns an alignment character inside the tbody element |
chOff | Not supported in HTML5. Sets or returns the horizontal offset of the ch property |
vAlign | Not supported in HTML5. Use style.verticalAlign instead. Sets or returns the vertical alignment of the content within a thead element |
Properti dan Acara Standar
Objek TBody juga mendukung properti dan event standar .
Halaman Terkait
Tutorial HTML: Tabel HTML
Referensi HTML: tag HTML <tbody>