[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
HowToJavaScriptResizeHideFrameFromSameFrame

How to resize (or hide) a frame when clicking a button in the same frame?

Put this code in the frame page you want to resize, and replace FrameSetName with the name/id of its frameset. The code sets the frame's cols attribute to zero.

function HideFrame() 
{ top.FrameSetName.cols = "0,*";
}


Related threads:
Resize (hide) frame?

Java Script FAQ

last edited (April 19, 2004) by leeos, Number of views: 2156, Current Rev: 6 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.