Achei este codigo ae, mas nao tah funcionando diretio, naõ sei se esta certo!
function resizeFrame(parentName, childName, offsetHeight)
{
var isInternetExplorer = (document.all) ? true : false;
var ns6_mozilla = (document.getElementById) ? true : false;
//if Macintosh
if (navigator.platform.indexOf('Mac') != -1) {
//if Internet Explorer
if (isInternetExplorer) {
var parent = eval("document.all."+parentName);
var child = eval(childName+"document.documentElement");
offsetHeight *= 2;
parent.height=child.offsetHeight+offsetHeight;
}
else if (ns6_mozilla) {
var parent = eval("document.getElementById(\""+parentName+"\")");
var child = eval(childName+".document.body");
offsetHeight *= 5;
parent.height=child.offsetHeight+offsetHeight;
}
}
else {
//if Internet Explorer
if (isInternetExplorer) {
var parent = eval("document.all."+parentName);
var child = eval(childName+".document.body");
parent.height=child.scrollHeight+offsetHeight;
parent.scrolling="no";
}
//if at least Netscape 6 or Mozilla
else if (ns6_mozilla) {
var parent = eval("document.getElementById(\""+parentName+"\")");
var child = eval(childName+".document.body");
if (navigator.userAgent.indexOf('Netscape') != -1) {
// Appearantly netscape refuse to remove scrollbars unless a new default height is set. =/
parent.height=1;
}
parent.height=child.offsetHeight + offsetHeight;
parent.scrolling="no";
parent.scrollbars="no";
}
}
}
Na pagina que abrira no iframe
<script>
function adjustSize()
{
try {
parent.resizeFrame("calendar", "calendar", 0);
} catch(error) {}
}
</script>
<body onload="javascript: adjustSize();">
Alguem pode ajudar?










