By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,905 Members | 1,607 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,905 IT Pros & Developers. It's quick & easy.

Resizing IFRAME without reloading its contents

P: 1
Hi Friends,
I want to increase the height of my IFRAME without refreshing its contents.

presently i am using following code but it refreshes the contents of IFRAME can any one suggest me a better way to just increase its height and that too without refreshing its contents.

following is not the complete code its just a chunk out of it


var myFrame = document.getElementById("loginFrame");
var frameSrc = myFrame.src;
myFrame.height = 400;
myFrame.src = frameSrc;
Jun 15 '07 #1
Share this Question
Share on Google+
1 Reply


epots9
Expert 100+
P: 1,351
Hi Friends,
I want to increase the height of my IFRAME without refreshing its contents.

presently i am using following code but it refreshes the contents of IFRAME can any one suggest me a better way to just increase its height and that too without refreshing its contents.

following is not the complete code its just a chunk out of it


var myFrame = document.getElementById("loginFrame");
var frameSrc = myFrame.src;
myFrame.height = 400;
myFrame.src = frameSrc;
Hi sasparag welcome to TSDN,

just do:

Expand|Select|Wrap|Line Numbers
  1. var myFrame = document.getElementById("loginFrame");
  2. myFrame.height = 400;
  3.  
it'll change the height without refreshing
Jun 15 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.