Hi,
a first window opens another window. From this last one, I want to refresh the first window and close the second with a button.

I used the following function, but it doesn't seem to work:


<script language="JavaScript">
function goback()
{
window.opener.reload();
window.close();
}
</script>


and then called the function with a button


<input type="button" value="Close this window" OnClick="goback()">

What's wrong with that?
Thanks