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.loc ation.relo ad();self. close();re turn false;'>Close</a>
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.loc
<a href='#' onclick='window.opener.location.reload();self.close();return false;'>Close</a>
error.jpg
ASKER
Can you pleas give me an example of a script to use
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.