Objet HTML DOM TBody
Objet TBody
L'objet TBody représente un élément HTML <tbody>.
Accéder à un objet TBody
Vous pouvez accéder à un élément <tbody> en utilisant getElementById() :
Exemple
var x = document.getElementById("myTBody");
Créer un objet TBody
Vous pouvez créer un élément <tbody> en utilisant la méthode document.createElement() :
Exemple
var x = document.createElement("TBODY");
Propriétés de l'objet 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 |
Propriétés et événements standard
L'objet TBody prend également en charge les propriétés et événements standard .
Pages connexes
Tutoriel HTML : Tableaux HTML
Référence HTML : balise HTML <tbody>