I want to embede iframe in vf page. But my page height is not gettin set to height of iframe. so i tried following code but was not able to set height depending on iframe height.
<apex:page id="hompage" title="Homepage Visualforce" showheader="false"
sidebar="false" cache="false" standardStylesheets="false">
<apex:includeScript value="{!URLFOR($Resource.ShowCycleStaticResources,
'ShowCycleStaticResources/JQuery/jquery.min.js')}" />
<script type="text/javascript">
$(window).load(function() {
var parentIFrame = document.getElementById('homepageComponentiFrameId');
alert("window load occurred!"+parentIFrame.contents().find("body").height() );
});
Can any body help to get