Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to dynamically resize a frame

Frames

How to dynamically resize a frame

by  BillyRayPreachersSon  Posted    (Edited  )
One way of dynamically resizing a frame is to give your frameset an id:

Code:
<html>
	<frameset id="myFrameset" rows="50%,50%">
		<frame src="file1.html"></frame>
		<frame src="file2.html"></frame>
	</frameset>
</html>

and then use getElementById in your frame code:

Code:
<html>
<body onload="parent.document.getElementById('myFrameset').setAttribute('rows', '75%,25%', 0);">
</body>
</html>

Dan


[link http://www.coedit.co.uk/][color #00486F]Coedit Limited[/color][/link][color #000000] - Delivering standards compliant, accessible web solutions[/color]

[tt]Dan's Page [blue]@[/blue] Code Couch
http://www.codecouch.com/dan/[/tt]
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top