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
 |
|
Get Your Diploma!
W3Schools' Online Certification Program is the perfect solution for busy
professionals who need to balance work, family, and career building.
The HTML Certificate is for developers who want to document their knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate is for developers who want to document their knowledge of JavaScript and the HTML DOM.
The XML Certificate is for developers who want to document their knowledge of XML, XML DOM and XSLT.
The ASP Certificate is for developers who want to document their knowledge of ASP, SQL, and ADO.
|
|