Re: "Roll-up" or "collapse" IFrame?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: "Roll-up" or "collapse" IFrame?

From: Martin Honnen <mahotrash@yahoo.de>
Date: Thu Jul 21 2005 - 20:34:10 CEST

Robert Oschler wrote:

> How can I get the rest of the page to move up when I hide / shrink the
> IFrame with Javascript?

There is no difference to other elements, if you want to make an element
not consume any layout space and be hidden then set the CSS display
property to none e.g.
   iframeElement.style.display = 'none'
to show it again set
   iframeElement.style.display = ''

-- 
	Martin Honnen
	http://JavaScript.FAQTs.com/
Received on Tue Oct 18 02:59:24 2005