Resizing/Hiding Frames

They have: 19 posts

Joined: Feb 2000

How do you resize a frame and update the page in JavaScript - or just hide it completely so that the other frames can use up the space it was using.

They have: 231 posts

Joined: Feb 2000

You can dynamically change the size of your rows and cols with JavaScript (not too many people know about this).

Add to a frame:

<a href="javascript:parent.hideFrame()">HIDE FRAME</a>

Add to Parent Frameset document:

code:

function hideFrame() {
   document.body.rows = "0,*";
   }[/code]

I made a script for one of my sites once that allowed you to double-click any frame and it would resize to about 5 pixels. Then you just double-click it again to make it re-appear. I can dig it up for you and post it if you like. 

:: Lloyd Hassell :: http://www14.brinkster.com/lloydh ::

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi Lloyd,

Neat.

Vinny

------------------
GrassBlade: cut&paste javascript

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.