WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 resize a frame by script, NoName, September 18, 2003
     Re:resize a frame by script, Erik Arvidsson, September 19, 2003
         Re:resize a frame by script, Sridhar Voorakkara, October 21, 2003
             Re:resize a frame by script, Erik Arvidsson, October 22, 2003

Subject: Re:resize a frame by script From: Erik Arvidsson Date: October 22, 2003
Iframe:

var el = document.getElementById("iframe-id");
el.style.width = "400px";
el.style.height = "200px";

Frameset:

var el = document.getElementById("frameset-id");
el.cols = "400,*";
el.rows = "200,*";

Just be careful to use the correct document.

erik





Hello,
I am trying to resize an Iframe using Javascript. But I get an error 'Object does not support this property.' . Can you please post a sample ?
Thanks
Sridhar

From: Erik Arvidsson
Sent: September 19, 2003
Subject: Re:resize a frame by script

If you are using frameset just change the rows or the cols attribute of the frameset. If you are using iframes just change the style.width and/or style.height.

erik





Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX