Forum Moderators: open

Message Too Old, No Replies

way to refresh parent window?

Trying to refresh the parent window

         

meingallsphp

11:50 pm on Jan 25, 2007 (gmt 0)

10+ Year Member



Is there a way to have the parent window refresh itself when you click a button in the child window?

I am trying to close the child window but have the parent refresh.

I tried the following:

<a onclick="javascript: window.parent.history.go(); window.close();"><img src="images/Okay.gif" alt="Close window" border="0"></a>

but all this did was close the child window.

Any suggestions?

Thanks,
Mel

Trace

8:14 pm on Jan 26, 2007 (gmt 0)

10+ Year Member



Try this;

<a href="#" onclick="window.opener.document.location.reload(); window.close(); return false;"><img src="images/Okay.gif" alt="Close window" border="0"></a>