HTML DOM abbr Property
Complete TableCell Object Reference
Definition and Usage
The abbr property sets or returns an abbreviated version of the content in a
table cell (for
non-visual media such as speech or Braille).
Syntax
tabledataObject.abbr=text
|
Example
The following example aligns a table cell to the right:
<html>
<head>
<script type="text/javascript">
function alertAbbr()
{
alert(document.getElementById('td1').abbr);
}
</script>
</head>
<body>
<table border="1">
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td id="td1" abbr="Some text">Peter</td>
<td id="td2">Griffin</td>
</tr>
</table>
<br />
<input type="button" onclick="alertAbbr()"
value="Alert abbr" />
</body>
</html>
|
Try-It-Yourself Demos
Alert
abbreviated version of a table cell
Complete TableCell Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|