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

Who is Participating?
brad2575Connect With a Mentor Commented:
function Testing(){
  return false;


<a href='#' onclick='Testing();'>Close</a>

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.
brad0525Author Commented:
Can you pleas give me an example of a script to use
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.