Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q566 How can a form button be used to resize the existing frames?

You are here: irt.org | FAQ | JavaScript | Frame | Q566 [ previous next ]

Only by loading a different frameset definition into the top frame:

<form>
<input type="button" onClick="top.location.href='alternative_frameset.html'" value="Resize Frames">
</form>

Bill Cressman writes:

You can resize frames in Internet Explorer 4+ by doing this:

this.parent.rows="40,200,*";

Thanks to Luca Passani for the following:

this.parent.setAttribute('rows','40,200,*')

Here's another way to do this in recent browsers:

<frameset id="myframeset" rows="0, *">
   <frame name="frame1" src="page1.html">
   <frame name="frame2" src="page2.html">
</frameset>

<script>
document.getElementById("myframeset").rows = "100, *";
</script>

Feedback on 'Q566 How can a form button be used to resize the existing frames?'

©2018 Martin Webb