For example:
parent.html
////////
<html>
<head>
<title>Parent window</title>
</head>
<body>
<SCRIPT LANGUAGE=javascript>
<!--
myWindow=window.open("window.html","window","height=100,width=100");
//-->
</SCRIPT>
</body>
</html>
////////
window.html
<HTML>
<HEAD>
<TITLE>Child window</TITLE>
<SCRIPT LANGUAGE=javascript>
<!--
function refresh(){
window.opener.location.reload();
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<form>
<input type=button onClick="refresh()" value="Refresh">
</form>
</BODY>
</HTML>
With Regards,
Teemu Keiski
-----Alkuperäinen viesti-----
Lähettäjä: Donald Soar [mailto:donald_soar@m...]
Lähetetty: 6. tammikuuta 2001 18:11
Vastaanottaja: javascript
Aihe: [javascript] Re: refreshing a parent window from its child?
Sorry but, I do not know if you can refresh the parent from the child.
However, the child can return "the new values" to the parent.
And, the parent can refresh herself using the newly returned values.
I hope that this helps.
----- Original Message -----
From: Kelly Brownsberger
Sent: Saturday, January 06, 2001 12:28 AM
To: javascript
Subject: [javascript] refreshing a parent window from its child?
Is there a way to refresh a parent window using javascript from the child
window? Meaning the parent window is a window that has created a window
using window.open and that window being its child.
I have a rather large <form> and I am trying to break it up into multiple
parts.
Different sections are being editable using child windows. After the
given section is processed, I would like the child window to "refresh" its
parent to reflect the changes and then close itself.
I know closing the window is quite simple, but I can't seem to get the
parent to refresh. I'm pretty sure I've seen this done using javascript,
but I'm having problems. Any thoughts?
Thanks
---
NEED TECHNICAL TIPS, TOOLS, AND INSIGHTS? Is FREE okay?
Visit EarthWeb for the latest in IT Management, Software Development,
Web Development, Networking & Communications, and Hardware & Systems.
Click on http://www.earthweb.com for FREE articles, tutorials,
and discussions from the experts.
---
You are currently subscribed to javascript as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-javascript-$subst('Recip.MemberIDChar')@p2p.wrox.com