<html>
<head>
<script type="text/javascript">
function deleteCaption()
{
document.getElementById('myTable').deleteCaption()
}
</script>
</head>
<body>
<table id="myTable" border="1">
<caption>我的表格标题</caption>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<td>Peter</td>
<td>Griffin</td>
</table>
<br />
<input type="button" onclick="deleteCaption()" value="删除标题" />
</body>
</html>