HTML DOM summary Property
Complete Table Object Reference
Definition and Usage
The summary property sets or returns the summary of a table.
The summary property specifies a summary of the table for
speech-synthesizing/non-visual browsers.
Syntax
Example
The following example returns the summary of a table:
<html>
<head>
<script type="text/javascript">
function alertSummary()
{
alert(document.getElementById("table1").summary);
}
</script>
</head>
<body>
<table id="table1" border="1"
summary="Example table of employees">
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>Peter</td>
<td>Griffin</td>
</tr>
</table>
<br />
<input type="button" onclick=alertSummary()
value="Alert table summary" />
</body>
</html>
|
Try-It-Yourself Demos
Get
the summary of a table
Complete Table Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|