I have a main page with 2 iframes on it.
main page ----- iframe1
|
|
|------------- iframe2
Is it possible to refresh iframe1 from inside iframe2?
i tried this, but it doesn't work:
main page ----- iframe1
|
|
|------------- iframe2
Is it possible to refresh iframe1 from inside iframe2?
i tried this, but it doesn't work:
Code:
<script type="text/javascript" language="javascript">
<!--
function refreshIframe(){
var iframeid = "sessionlog";
var h = parent.window.getElementById(iframeid).src;
parent.window.getElementById(iframeid).src = h;
}
//-->
</script>
Code:
<body onload="refreshIframe();">