TableHeader abbr Proprietà
Esempio
Restituisce il valore dell'attributo abbr di un elemento <th> con id "myTh":
var x = document.getElementById("myTh").abbr;
Definizione e utilizzo
La proprietà abbr imposta o restituisce il valore dell'attributo abbr.
L'attributo abbr specifica una versione più breve del contenuto in una cella di intestazione.
Nota: l'attributo abbr non ha alcun effetto visivo nei normali browser Web, ma può essere utilizzato dagli screen reader.
Supporto del browser
Property | |||||
---|---|---|---|---|---|
abbr | Yes | Yes | Yes | Yes | Yes |
Sintassi
Restituisce la proprietà abbr:
tableheaderObject.abbr
Imposta la proprietà abbr:
tableheaderObject.abbr = text
Valori di proprietà
Value | Description |
---|---|
text | Specifies a short description of the header cell content |
Dettagli tecnici
Valore di ritorno: | Una stringa, che rappresenta una breve descrizione del contenuto della cella di intestazione |
---|
Altri esempi
Esempio
Modifica il valore dell'attributo abbr di un elemento <th> con id "myTh":
document.getElementById("myTh").abbr = "newValue";
Pagine correlate
Riferimento HTML: attributo HTML <th> abbr
❮ Oggetto TableHeader