Link to home
Start Free TrialLog in
Avatar of brad0525
brad0525

asked on

Close Child Window and Refresh parent window at the same time

I am trying to use the code below to close the child window and refresh the parent window. I am using IE. In the lower left corner I see the "Error on page" message and icon.  Please see the attached image for the error.

I additionally have tried a few other codes and get the error "object doesnt support this property or method" ...Any help would be great.


<a href='#' onclick='window.opener.location.reload();self.close();return false;'>Close</a>
<a href='#' onclick='window.opener.location.reload();self.close();return false;'>Close</a>

Open in new window

error.jpg
Avatar of brad2575
brad2575
Flag of United States of America image

try taking out the return false.

Or turn it into a function and add alert between each line to see what works and where the error is.  So have a function that does the refresh, alert box, close, alert box/etc (the alert box after the close shouldnt work).  Then once you figure it out you can put it back into inline vs a function.
Avatar of brad0525
brad0525

ASKER

Can you pleas give me an example of a script to use
ASKER CERTIFIED SOLUTION
Avatar of brad2575
brad2575
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial