JavaScript Reference/Javascript Properties/abbr
"abbr" Example
<html>
<head>
<script language="JavaScript">
function function1() {
document.all.myTableHeader.abbr = "Abbreviation";
}
</script>
</head>
<body onLoad="function1();">
<table width="428">
<th id="myTableHeader" colspan="2">This is the table heading </th>
<tr>
<td> Cell 1 content </td>
<td> Cell 2 content </td>
</tr>
<tr>
<td> Cell 3 content </td>
<td> Cell 4 content </td>
</tr>
</table>
</body></html>
"abbr" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<td> <th> |
+----------------+--------------------------------------------------------------+
"abbr" Syntax and Note
Note:
Read and write property.
Set an abbreviated element text.
Syntax:
document.getElementById("elementID").abbr = value
document.all.elementID.abbr = value // IE only