Reload parent window with new query string

hi-

i have a popup page that i want to autoclose after its executed some code and tell the parent to refresh and add some info to it’s query string, so i can add a “Updated.” notice to the parent page.

i’m trying to do it like this:


<html>
<head>
<script language="JavaScript">

function exit_this()
{
	opener.window.location.href += "?update=done";
	opener.window.location.reload();
	self.close();
	return false;
}

</script>

<TITLE>Update Post</TITLE>
</head>
<body onload="exit_this()">
Done..
</body>
</html>

it refreshs the parent page but the url doesn’t update to ?update=done, it stays the same as it originally was.

what am i doing wrong here? thanks for any help!

the property opener references itself the window that opened the current page, so there is no need of puting the keyword window, just do this:

opener.location.href += “?update=done”;
opener.location.reload();