Abrir site externo em iframe, e redimensionar de acordo com a altura
Possuo este código que puxa a url de outro e não estou conseguindo fazer com que ele redimencione de acordo com o tamanho da outra pagina.
<html>
<head>
<script language="JavaScript">
function resize() {
var iframe = document.all.NAME;
iframe.height=document.frames("NAME").document.body.scrollHeight;
}
</script>
</head>
<body>
<table width="810" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>aqui veio um arquivo</td>
</tr>
<tr>
<td>
<iframe src="[http://webagente.unitour.com.br/"](http://webagente.unitour.com.br/) name="NAME" scrolling="no" width="100%" height=100% frameborder="0" onload="iframe.document.body.offsetHeight"></iframe>
</td>
</tr>
<tr>
<td>aqui veio um arquivo</td>
</tr>
</table>
</body>
</html>
Vocês poderiam me ajudar
Abs
Discussão (1)
Carregando comentários...