<scripttype="text/javascript">functionSetCwinHeight(){variframeid=document.getElementById("iframeid");//iframe id
if(document.getElementById){if(iframeid&&!window.opera){if(iframeid.contentDocument&&iframeid.contentDocument.body.offsetHeight){iframeid.height=iframeid.contentDocument.body.offsetHeight;}elseif(iframeid.Document&&iframeid.Document.body.scrollHeight){iframeid.height=iframeid.Document.body.scrollHeight;}}}}</script><iframewidth="100%"id="iframeid"onload="Javascript:SetCwinHeight()"height="1"frameborder="0"src="www.xxx.com"></iframe>
functionSetCwinHeight(id){document.domain='www.abc.com'variframeid=document.getElementById(id);//iframe id
if(document.getElementById){if(iframeid&&!window.opera){console.log("iframeid:"+iframeid.contentDocument);if(iframeid.contentDocument&&iframeid.contentDocument.body.offsetHeight){iframeid.height=iframeid.contentDocument.body.offsetHeight+50;}elseif(iframeid.Document&&iframeid.Document.body.scrollHeight){frameid.height=iframeid.Document.body.scrollHeight+50;}}}}