HTML DOM TableHeader abbr attribute
Examples
Returns the value of the abbr attribute id is "myTh" of <th> element:
var x = document.getElementById("myTh").abbr;
document.getElementById("demo").innerHTML=x;
document.getElementById("demo").innerHTML=x;
x The output is:
Make
try it"
Definition and Usage
abbr property sets or returns the value of the abbr attribute.
abbr attribute specifies the data cells in an abbreviated version (for non-visual media such as speech or braille).
If this attribute is set, the user will only hear the value (rather than the entire contents of the cell) abbr attribute.
Browser Support
All major browsers support the abbr attribute. However, the functionality of this property has not been implemented in any of the major browsers.
grammar
Back abbr attribute:
tableheaderObject .abbr
Setting abbr attribute:
tableheaderObject .abbr=text
Property Value
值 | 描述 |
---|---|
text | 规定表头单元格内容的短描述。 |
technical details
return value: | String that represents the abbreviation text. |
---|
related articles
HTML Reference Manual: HTML <TH> abbr attribute