Link to home
Start Free TrialLog in
Avatar of ramsharma23
ramsharma23

asked on

IFRAME PROBLEM

Iam using an IFRAME inside a table. Iam not using any height attribute for the table <TR><td>.... and I have not mentioned any height attribute for IFRAME also. Inside the IFRAME iam displaying a page. When the page gets displayed intside the IFRAME I get a scroll bar, but I want the IFRAME to get extended instead of having a scroll bar.

Need Solution....
ASKER CERTIFIED SOLUTION
Avatar of Batalf
Batalf
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sajuks
sajuks

//try this
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<script>
function reSize(){
  var fB = window.frames.frm.document.body;
  fB.style.overflow = "hidden";
  window.frames.frm.resizeTo(fB.scrollWidth,fB.scrollHeight)
 
}
</script>
</HEAD>

<BODY>

<iframe src = "c:\1.html" onLoad="reSize()"  name ="frm" id ="frameid"></iframe>
</BODY>
</HTML>