<div class="xt_container" ><iframe class="myiframe" src=""></iframe></div>
<script type="text/javascript">
var ih = window.innerHeight;
var oh = window.outerHeight;
var hght=(ih-(oh-ih)-32);
var styl = document.createElement("style");
var t = document.createTextNode(".myiframe {width:100%;height:"+hght+"px;border:1px solid red}");
styl.appendChild(t);
document.head.appendChild(styl);
</script>
Copy code
<script type="text/javascript">
var ih = window.innerHeight;
var oh = window.outerHeight;
var hght=(ih-(oh-ih)-32);
var styl = document.createElement("style");
var t = document.createTextNode(".myiframe {width:100%;height:"+hght+"px;border:1px solid red}");
styl.appendChild(t);
document.head.appendChild(styl);
</script>
Copy code
if xtauth is skipped you do not need the -32