Hello after hours of search i found a script that works for my iframe exept a little problem it never stops it increases the height with no stop... here is the code i add this script at my page i want the iframe
<script>
function alertsize(pixels){
pixels+=0;
document.getElementById('myiframe').style.height=pixels+"px";
}
</script>
<script type="text/javascript">
var myHeight = 0;
setInterval(function(){
if(myHeight != document.body.scrollHeight){
myHeight = document.body.scrollHeight;
parent.alertsize(myHeight);
}
},500);
</script>
here is iframe:
<iframe id="myiframe" src="http://www.altasoft.gr/hermes/index.html"
name="myiframe" width="100%" height="100%" scrolling="no"
frameborder="0"></iframe>