It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Refreshing the parent page from the SECOND child : Xpost

Refreshing the parent page from the SECOND child : Xpost

Postby happybuddha on Wed Jul 30, 2008 7:43 am

Hi,

I need to refresh the parent page from the second child window which is opened by the first child and the first child window closes after opening the second child.

This is the second time I am typing the post, I lost all content because the site complaine I was using the lesser than symbol.

here is the code I wrote for this. the first child doesnt open the second child in IE. however, in firefox, the first child does open the second one but closes without even me writing code to close. Ofcourse, it doesnt call the script on the parent page.

Parent :

code:
--------------------------------------------------------------------------------

<a href="javascript:void(0);"NAME="My Window Name" title=" My title here "onKlick=window.open("child.html","Ratting","width=550,height=170,0,status=0,");> Click here to open the child window</a>

--------------------------------------------------------------------------------


child :

code:
--------------------------------------------------------------------------------

<script language="JavaScript">function goback(){window.opener.location.reload("google.com");window.close();}</script> and then called the function with a button open another window<a href="javascript:void(0);"NAME="My Window Name1" title=" My title here11 "onKlick=window.open("child2.html","Ratting","width=150,height=120,0,status=1");>Click here to open the child window</a> <input type="button" value="Close this window" Onklick="goback()">

--------------------------------------------------------------------------------


child1 (this is saved as child2.html on my system):

code:
--------------------------------------------------------------------------------

<script language="JavaScript">function goback(){window.opener.location.reload("google.com");window.close();}</script> and then called the function with a button on parent <input type="button" value="Close this window" OnKlick="goback()">

--------------------------------------------------------------------------------


ofcourse the onklick is typo'd because this site wont take it
happybuddha
 
Posts: 0
Joined: Wed Jul 30, 2008 7:33 am

Who is online

Users browsing this forum: No registered users and 3 guests