HTML DOM rows Property
Complete Frameset Object Reference
Definition and Usage
The rows property sets or returns the number and size of rows in a
frameset.
The comma-separated list of pixels and/or
percentages defines the number and width of the rows.
Syntax
framesetObject.rows=row1,row2,row3....
|
Example
In our example we will first create an HTML document containing a frameset
with two rows. Each row is set to 50% of the browser window:
<html>
<frameset rows="50%,50%">
<frame src="frame_rows.htm">
<frame src="frame_a.htm">
</frameset>
</html>
|
The HTML document "frame_rows.htm" is put into the first row, and the HTML
document "frame_a.htm" is put into the second row.
The source of "frame_rows.htm" is as follows:
<html>
<head>
<script type="text/javascript">
function changeRows()
{
parent.document.getElementById("main").rows="30%,70%"
}
function restoreRows()
{
parent.document.getElementById("main").rows="50%,50%"
}
</script>
</head>
<body>
<form>
<input type="button" onclick="changeRows()"
value="Change row size" />
<input type="button" onclick="restoreRows()"
value="Restore row size" />
</form>
</body>
</html>
|
Try-It-Yourself Demos
Change
the row sizes of a frameset
Complete Frameset Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|