Hi there

My JavaScript is weak so I was hoping someone could tell me how to achieve the following:

I have a login fail page that is displayed within a popup. On this page is a link to return to the members area. What I would like is for the link to change the url of the window.opener and then I would call window.close(); to get rid of the current window.

Many thanks


its ok, I've done it like this:
function divert(url) {
  if (window.opener && !window.opener.closed)
  	opener.location.href = url;

<a href="javascript:divert('/index.php')" title="Users Account Area">return to your account</a>
Thanks anyway