I'm trying to dynamically set the height of my Iframe. my https: main page
is calling another https in an Iframe. But i get an access denied error
from my javascript trying to call the parent document.
Main https page
<IFRAME APPLICATION="ye s" style="width:10 0%;" id="iframename "
frameborder="no " scrolling="no" SRC="https://www.otherdomain .com">
otherdomain.com html
------------------------------------------------
<script>
function bodyheight() {
x = document.body.s crollHeight
parent.document .all.iframename .style.height = x
}
</script>
is calling another https in an Iframe. But i get an access denied error
from my javascript trying to call the parent document.
Main https page
<IFRAME APPLICATION="ye s" style="width:10 0%;" id="iframename "
frameborder="no " scrolling="no" SRC="https://www.otherdomain .com">
otherdomain.com html
------------------------------------------------
<script>
function bodyheight() {
x = document.body.s crollHeight
parent.document .all.iframename .style.height = x
}
</script>
Comment