Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refresh parent Iframe from another Iframe

Status
Not open for further replies.

ArtWerk

Programmer
Jul 31, 2006
66
US
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:

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();">
 
parent.framename.location.reload();


"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top