[Javascript] opener object

Bill Marriott bill.marriott at optusnet.com.au
Mon Jul 2 03:57:40 CDT 2001


Hi Everyone,

I'm new to the list so please let me know if I don't follow the list etiquette.
I'm also new to Javascript and have the following problem.

I have a popup window I want to use to let the user select the next page for the parent window.
On the 'on click' of a table cell in the popup , I want the popup to close
and the parent window to go to the new address.

I can't get the following code to work.
Can anyone see why , Please?

function goPage(src)     ( in the popup code script tag)
{  
   opener.focus();
   opener.location.href = src;
   top.window.close();
}

onclick="javascript:return goPage('new_wd.htm')"  is the code in popup that calls the function.

I'm getting an error " opener is not an object"

Thanks in advance

Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010702/0ba65eff/attachment.htm>


More information about the Javascript mailing list