TableHeader abbrProperty
Example
Return the value of the abbr attribute of the <th> element with id "myTh":
var x = document.getElementById("myTh").abbr;
document.getElementById("demo").innerHTML=x;
document.getElementById("demo").innerHTML=x;
xThe output result is:
Make
Try it yourself »
Definition and Usage
The abbr property sets or returns the value of the abbr attribute.
The abbr attribute specifies an abbreviated version of the content in a data cell (for non-visual media, such as speech or Braille).
If this attribute is set, the user will only hear the value of the abbr attribute (instead of the entire content of the cell).
Browser Support
![]()
![]()
![]()
![]()
![]()
All mainstream browsers support the abbr attribute. However, the functionality of this attribute is not implemented in any mainstream browser.
Syntax
Return the abbr property:
tableheaderObject.abbr
Set the abbr property:
tableheaderObject.abbr=text
Property Values
| Value | Description |
|---|---|
| text | Specifies a short description of the content of the table header cell. |
Technical Details
| Return value: | A string, representing the abbreviated text. |
|---|
Related Articles
HTML Reference Manual:HTML <th> abbr attribute
Other Extensions
TableHeader Object