[Javascript] opener object

Bill Marriott bill.marriott at optusnet.com.au
Mon Jul 2 21:45:45 CDT 2001


Peter and Peter

I made sure I set the opener with
 CropPick.opener = self;
in the parent form and it now works

many thanks

Bill

----- Original Message -----
From: "Peter-Paul Koch" <gassinaumasis at hotmail.com>
To: <javascript at LaTech.edu>
Sent: Tuesday, July 03, 2001 8:48 AM
Subject: Re: [Javascript] opener object


>
>
> >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"
>
> Any frames in the popup? If so, do top.opener.etc . The individual frame
> doesn't have an opener, because only the top frame was opened from another
> page.
>
> ppk
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> http://www.LaTech.edu/mailman/listinfo/javascript





More information about the Javascript mailing list