Skip to content Skip to sidebar Skip to footer

Iframe Auto Size Based On Content That Changes Size Based On Search Results

I have one page that contains search page iframe . If you try to search for a text it will rarely fit the page. I don't know what code to use to auto resize iframe based on conten

Solution 1:

<script type="text/javascript">
var myHeight = 0;

setInterval(function(){
    if(myHeight != document.body.scrollHeight){
        myHeight = document.body.scrollHeight;
        parent.alertsize(myHeight);
    }
},500);
</script>

Post a Comment for "Iframe Auto Size Based On Content That Changes Size Based On Search Results"