PDA

View Full Version : Dynamically Changing Frame Size???


raylaur
11-23-2002, 02:57 PM
Is it possible to write a function that changes a frame's width or height in a frameset? I want to create a left-screen menu that can be 'opened' or 'closed' similar to the one used in this Microsoft web page:

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/dhtml_reference_entry.asp?frame=true

According to NewRiders Inside Javascript, the Frame object has a width and height property that can be set or read. I have not been able to make it work. My browser is IE6.

If there is a way to make this work, what browsers (Netscape or IE)
and versions will it work or not work in?

Thanks.

x_goose_x
11-23-2002, 04:14 PM
<frameset cols="150,*" name="tmp">

<a href="javascript: top.tmp.setAttribute('cols','100,*');">change</a>

raylaur
11-23-2002, 05:13 PM
Thank You! that works fine.