PDA

View Full Version : how to find out the size(height and width) of frame in iframe



pankaj.ghadge
01-05-2009, 06:58 AM
hello,

I want to find out the height and width of right frame in iframe that is included in left frame.

main.html

<html>
<frameset cols="15%, *" id="fs1">
<frame src="left.html" name="left" frameborder="1" id=leftId >
<frame src="right.html" name="right" frameborder="1" id=rightId>
</frameset>
</html>


suppose in left frame i have included a iframe and in that iframe code i wANT TO find out the size of right frame.

left.html


<html>
<head>
</head>
<body>
<iframe src ="iframe_test.html" width="100%" height="300px">
</iframe>
</body>
</html>


right.html page could be any html page.

iframe_test.html


<html>
<head>
<script>
// Here i want to find out the height and width of right frame
</script>
</head>
</html>


please tell me how to find it......................