HTML DOM frame Property
Complete Table Object Reference
Definition and Usage
The frame property sets or returns the outer-borders of a table.
Syntax
tableObject.frame=void|above|below|hsides|vsides|lhs|rhs|box|border
|
Example
The following example sets two different outer borders of a table:
<html>
<head>
<script type="text/javascript">
function aboveFrames()
{
document.getElementById('myTable').frame="above"
}
function belowFrames()
{
document.getElementById('myTable').frame="below"
}
</script>
</head>
<body>
<table id="myTable">
<tr>
<td>100</td>
<td>200</td>
</tr>
<tr>
<td>300</td>
<td>400</td>
</tr>
</table>
<br />
<input type="button" onclick="aboveFrames()"
value="Show above frames">
<input type="button" onclick="belowFrames()"
value="Show below frames">
</body>
</html>
|
Try-It-Yourself Demos
Specify
outer borders 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. |
|
|
|