S
Sunilc
Hi,
following code is works fine in ie but not in firefox. Please help me.
<html>
<head>
<script>
function resizeFrames()
{
var ifrmobjs = document.getElementsByTagName("iframe");
alert(ifrmobjs.length);
for (var i=0;i < ifrmobjs.length;i++)
{
ifrmobjs.style.height = "100px";
}
}
</script>
</head>
<body onload="resizeFrames();">
<iframe id="isystemmanager" name="isystemmanager"
src="Page1.jsp" style="width:100%;display:none" frameborder="0" />
<iframe id="iunitview" name="iunitview"
src="unitView.jsp" style="width:100%;" frameborder="0" />
<iframe id="iunitlist" name="iunitlist"
style="width:100%;display:none;" frameborder="0" />
<iframe id="idataView" name="idataView"
style="width:100%;display:none;" frameborder="0" scrolling="no" />
</body>
</html>
In ie alert shows 4 but in firefox alert shows 1.
following code is works fine in ie but not in firefox. Please help me.
<html>
<head>
<script>
function resizeFrames()
{
var ifrmobjs = document.getElementsByTagName("iframe");
alert(ifrmobjs.length);
for (var i=0;i < ifrmobjs.length;i++)
{
ifrmobjs.style.height = "100px";
}
}
</script>
</head>
<body onload="resizeFrames();">
<iframe id="isystemmanager" name="isystemmanager"
src="Page1.jsp" style="width:100%;display:none" frameborder="0" />
<iframe id="iunitview" name="iunitview"
src="unitView.jsp" style="width:100%;" frameborder="0" />
<iframe id="iunitlist" name="iunitlist"
style="width:100%;display:none;" frameborder="0" />
<iframe id="idataView" name="idataView"
style="width:100%;display:none;" frameborder="0" scrolling="no" />
</body>
</html>
In ie alert shows 4 but in firefox alert shows 1.