Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Frame | Q566 [ previous next ]

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

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?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.