well i´m almost sure we can´t change an iframe size that way.
I think the
resize/noresize properties are to specify whether we can change its size or not!
Let´s try it with javascript. Place this code between
<head></head>!
Example (replace 'iframe_name' with your iframe name):
- Code: Select all
<script language="JavaScript">
function resize() {
var iframe = document.all.iframe_name;
iframe.height=document.frames("iframe_name").document.body.scrollHeight;
}
</script>
Use the
onload property in your
body or even in your
iframe tag.
Example:
- Code: Select all
<body onload="resize()">
or...
<iframe onload="resize()">
Than add this property to your iframe, Like:
- Code: Select all
<iframe scrolling="no" ></iframe>